HI,
I have a strange problem usin PeriodAxis().Indeed, i'm not able o set the color of ticks labels of the axis.So i can't change My PeriodAxis color (only the axis line is corrctly setted).
Does someone knwo about this problem and how to work aroung?
PeriodAxis problem
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
This is a bit messy, because the inherited methods for tick labels won't do anything. The PeriodAxis supports multiple "bands" of labels, which you configure by calling the setLabelInfo(PeriodAxisLabelInfo[]) method. The array contains one item for each band of labels, and one of the attributes of the PeriodAxisLabelInfo class is the labelPaint, which is the one you need to set.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Great! I'm wondering about a sensible way to override the setTickLabelPaint() method (and related methods)...do you think they should just throw a "not supported" exception or should I map them to update the first PeriodAxisLabelInfo[] instance so that they do something useful? Doing nothing (which is what JFreeChart does now) isn't very helpful, as you've discovered...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

