Albinoswordfish Albinoswordfish - 7 months ago 14
Java Question

Changing color of labels in JFreeChart

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?

Answer

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