Hi,
I am creating a barchart with 1,2,3,4,5,...etc., in domain axis, but i do not want to display it in sequence , but i want to customize it , for example 5,10,15,20, etc., still showing all the bars, but from 1-4 no lable, for 5th bar i will show 5, then 6-9 no label, for 10th bar i will show , so onnnn....
any idea what can help me ?
BarChart : Domain Axis : Custom Number Display
-
- Posts: 1
- Joined: Mon Oct 24, 2016 6:52 pm
- antibot: No, of course not.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: BarChart : Domain Axis : Custom Number Display
If your x-axis scale is really numerical, then you might want to consider creating a bar chart using XYBarRenderer (which uses XYPlot and a numerical x-axis rather than CategoryPlot and its categorical axis).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program