Hi
For the X and Y axis I want to show the percentage sign with the actual numbers shown. Can anybody tell me how to do that. Specially in the case of Y axis how can I display percentage signs.
Thanks in Advance.
Bar chart help - Percentage
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The labels on the axes are formatted using Java's NumberFormat and DateFormat classes, so it is relatively straightforward to do. There are different approaches, depending on what you need, but the easiest is the setNumberFormatOverride() method in the NumberAxis class.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

