Hi;
Can someone point me to a url that shows the best way to tell JFreeChart how to format the text and set the color for the axis and data labels?
thanks - dave
custom text & color for axis & data labels
-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: custom text & color for axis & data labels
The axis classes have setTickLabelFont() and setTickLabelPaint() methods. For the data labels, the renderers have setBaseItemLabelFont()/setSeriesItemLabelFont() and setBaseItemLabelPaint()/setSeriesItemLabelPaint() methods.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
Re: custom text & color for axis & data labels
thanks you!
-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
Re: custom text & color for axis & data labels
To render the text for a tick label (ie for a number I may want $1 234,56) - is the best way to call setTickUnit(new NumberTickUnit(double, new MyFormatter()))?
thanks - dave
thanks - dave