I have overlaid chart.
formatted primary range axis as
NumberAxis xAxis1 = (NumberAxis) plot.getRangeAxis();
xAxis1.setNumberFormatOverride(new DecimalFormat("##"));
I need to format secondary range axis (for dual axes graph)
I tried
NumberAxis xAxis2 = (NumberAxis) plot.getRangeAxisForSecondaryDataset(0);
xAxis2.setNumberFormatOverride(new DecimalFormat("##"));
but it doesn't format
I am using 0.9.12 version. I cannot upgrade my version since I have already written a lot.
Please help
Nilesh
secondary range axis format for overlaid graph
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Have you tried a pattern different to '##'? I'm not sure that pattern will actually *do* any formatting.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

