Hello,
i am using a [i]DefaultCategoryDataset[/i] to store my data (y-Axis is a double, x-Axis a String) and [i]ChartFactory.createLineChart[/i] to create the chart.
My problem is, that i only want labels on certain ticks of the x-Axis (only categories that have a high value). Is there any provision for this? I tried to look through the source for CategoryAxis but could not really find anything.
Regards, Fee
label only selected categories?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You'll need to subclass the CategoryAxis class and override the refreshTicks() method.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Similar problem, but easier (I hope)
I have a CategoryAxis. I want to show just 1 out of 10 label, beacuse I have more that 100 labels. I tried to put "" as label, but the resulting graph is not correct.
Thanx
alb
Thanx
alb