Periodic CategoryAxis ticks

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
desaila
Posts: 3
Joined: Mon Jun 14, 2010 4:25 pm
antibot: No, of course not.

Periodic CategoryAxis ticks

Post by desaila » Tue Jun 15, 2010 8:56 pm

I'm working with some data that is in this format:
AAAAA,0.888
AAAAT,0.123
AAAAC,0.345
....
TTTTT,0.333

There's 1024 lines of that type of data, each with unique strings in the first field. This becomes a problem when using a Line Chart from

Code: Select all

 JFreeChart chart = ChartFactory.createLineChart()
Is using a CategoryAxis the wrong move here? If so, you can point that out now and skip reading the rest :)

What I would like is a label on the x-axis (the CategoryAxis) every ~64th column instead of all 1024 labels. I read the FAQ about using a SlidingCategoryDataSet, but this seems to only show subsets of the data, rather than hide the ticks/labels.

Cheers!

desaila
Posts: 3
Joined: Mon Jun 14, 2010 4:25 pm
antibot: No, of course not.

Re: Periodic CategoryAxis ticks

Post by desaila » Wed Jun 16, 2010 7:10 pm


Locked