Can you have a bar chart with different scales on the data, say for example series A ranges from 1-10 and series B ranges from 0-1000. But if a bar in series A were 9, it would be the same height of bar as a value of 900 in series B.
Possible?
Bar chart with different scales for each series
yes it is possible
Hi,
It is possible, to have a bar chart with different heights w.r.t particular category.
for ex: if i have series A height as 9 and series B height as 999 then we can show separately with their heights in a single bar chart.
From this i cant send any attachment.
Regards
Rauf
It is possible, to have a bar chart with different heights w.r.t particular category.
for ex: if i have series A height as 9 and series B height as 999 then we can show separately with their heights in a single bar chart.
From this i cant send any attachment.
Regards
Rauf
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
It needs a trick - for two series, you would need to define two datasets both containing two series (four series in all). In the first dataset, series 2 contains all null values. In the second dataset, series 1 contains all null values. Then you create a second range axis in the normal way, and have to override the legend to hide the two null series. See DualAxisDemo5.java in the demos included with the JFreeChart Developer Guide.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

