I am using a multiCategoryDataset to draw various graphs such as line, bar and pie charts. On the line charts if there are a lot of entries on the X axis, the labels overwrite each other into a black blur.
How do I tell JFreeChart to skip labels if necessary to ensure that the labels are visible?
As it turns out, a lot of the time the Xaxis contains dates, but I populate the the Xaxis as strings all the time.
MultiCategory dataset: X-axis labels overlapping. How 2 stop
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
There isn't a way to hide categories from the axis. You might be better off switching to an XYPlot and using a DateAxis which will manage the label spacing for you.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

