MultiCategory dataset: X-axis labels overlapping. How 2 stop

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bkieser
Posts: 9
Joined: Wed Jan 26, 2005 5:55 pm
Location: UK
Contact:

MultiCategory dataset: X-axis labels overlapping. How 2 stop

Post by bkieser » Thu Nov 10, 2005 5:35 pm

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.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Nov 10, 2005 5:41 pm

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked