Is there anyway to change the color of the text on axis labe

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Billy O'Connell

Is there anyway to change the color of the text on axis labe

Post by Billy O'Connell » Sun Feb 09, 2003 9:14 pm

I want to change the color of the background of my chart to black but by doing this the text of the chart labels is no longer visible. Is there any way that I can change the color of the text on the labels and titles of the chart?

Thanks in advance,
Billy

David Gilbert

Re: Is there anyway to change the color of the text on axis

Post by David Gilbert » Tue Feb 11, 2003 10:44 am

All axis classes inherit the setLabelPaint(...) and setTickLabelPaint(...) methods from the Axis class.

The TextTitle class (used for the main chart title in JFreeChart 0.9.5) has a setPaint(...) method that controls the color of the text.

Regards,

Dave Gilbert

Locked