too many x axis values

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
veloopity
Posts: 2
Joined: Tue Jun 11, 2019 7:27 am
antibot: No, of course not.

too many x axis values

Post by veloopity » Thu Jul 11, 2019 8:26 am

My line charts can have hundreds of values on the x axis. Labels need to be displayed for the x axis but if ALL of them are displayed, the result is undecipherable. Can x axis labels be skipped programmatically?

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: too many x axis values

Post by John Matthews » Fri Jul 12, 2019 4:38 am

Given a CategoryAxis, try setTickLabelsVisible or setCategoryLabelPositions with the desired position; alternatively, consider a SlidingCategoryDataset.

Locked