Discussion about JFreeChart related to stockmarket charts.
-
johnnyhall81
- Posts: 3
- Joined: Tue Oct 24, 2006 9:43 am
Post
by johnnyhall81 » Thu Oct 26, 2006 11:19 am
How do I override the numberFormat so that large numbers such as 100,000 are displayed as 100k etc?
-
develop
- Posts: 296
- Joined: Wed Mar 23, 2005 10:01 pm
Post
by develop » Thu Oct 26, 2006 8:57 pm
you can use following,
rangeAxis.setNumberFormatOverride(new DecimalFormat("### K"));
where rangeAxis is your numberAxis (range or domain)
hope this helps