I'm developing a charting application and I'm using jFreeChart. I'm using a LineChart and a CategoryDataset.
I need to display a LineChart where in the Y axis (RangeAxis) there will be displayed number values and on the X axis (CategoryAxis) there will be displayed dates (yyyy/MM/dd hh:mm:ss) although in String format.
My question is if there is a way to display only certain dates on the CategoryAxis (X axis) althoug keeping all the pair (yyyy/MM/dd hh:mm:ss, Y value) in the series.
Example: the X axis only showing the days (yyyy/MM/dd) of my dataset but on mouseover in the series, the tooltip would stil display the pair (yyyy/MM/dd hh:mm:ss, Y value).
In other words, my CategoryAxis would contain only a subset of points of my series although my series would still contain all the values.
So far I'm limited to the restriction of for each (yyyy/MM/dd hh:mm:ss, Y value) pair displayed I need to have a correspondence (yyyy/MM/dd hh:mm:ss) on my X axis, which makes it unreadable as it is full of points and labels.
Don't know if I made myself clear and specific on my question, thanks in advance.