A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
anuser
- Posts: 1
- Joined: Fri Nov 18, 2016 1:38 pm
- antibot: No, of course not.
Post
by anuser » Fri Nov 18, 2016 1:49 pm
Hi everyone !
I really enjoy JFreechart and I got comma on my tick axis
I tried to change it to a dot with
Code: Select all
final NumberAxis rangeAxis = (NumberAxis)chart.getXYPlot().getRangeAxis();
final DecimalFormat format = new DecimalFormat("####");
rangeAxis.setNumberFormatOverride(format);
but it does not work.
Note that my number could be like xx.xx or x.x or x
What i actually got :
Thanks for reading me
-
John Matthews
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Post
by John Matthews » Sat Nov 19, 2016 4:38 am
Have you tried the DecimalFormatSymbols suitable for your Locale?