Hello,
I'm looking for the possibility to set NumberFormat to the values which are shown in the legend.
I wasn't able to find it so far.
Does anybody know???
NumberFormat nf = NumberFormat.getNumberInstance(Locale.GERMANY);
NumberFormat nfPercent = NumberFormat.getPercentInstance(Locale.GERMANY);
How can I let the legend to know about these formats???
please help!
How can I set NumberFormat (Locale) for the legend? HELP
How can I set NumberFormat (Locale) for the legend? HELP
using JFreeChart 1.0.0 rc1, Java 1.4.2
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Use the setLegendLabelGenerator() method in the PiePlot class. You should be able to use a StandardPieSectionLabelGenerator, it allows you to specify the number formatter.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

