I am currently working on a project using JFreeChart. I got everything working except when I start using large numbers, it goes all funny.
DefaultCategor
You can use setNumberFormatOverride() and pass in a suitable NumberFormat
. Hover over any bar to see the exact value in a tool tip.
NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
NumberFormat formatter = NumberFormat.getIntegerInstance();
rangeAxis.setNumberFormatOverride(formatter);