views:

208

answers:

1

Anybody that has experience using Jfreechart, is there a way to change the color of my labels for my XY axes. Right now I'm using a XYPlot and I want to change the color of the labels on my axes. Is there a way to do this?

Thanks

+1  A: 

You should be able to use setTickLabelPaint() on the desired Axis.

trashgod
Thank you that answered my question. For anybody else with this problem I got a little stuck with the fact that XYPlot's getDomainAxis() returns a ValueAxis. But I looked at the documentation and realized that Valueaxis is a child class of Axis.
Albinoswordfish
Excellent. One nice feature of `JFreeChart` is that the API documents are built with the `linksource` option, so you can navigate by clicking on names.
trashgod