Specify the color of VerticalNumberAxis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Guillaume Carriere

Specify the color of VerticalNumberAxis

Post by Guillaume Carriere » Thu Feb 13, 2003 9:51 am

Hello,

I want to change the color of my VerticalNumberAxis (fontcolor of the values, and lines of axis).

Could you send me a source code example ?

You can see a chart example here :
http://serveurwind.cci-brest.fr

Thanks,


Guillaume CARRIERE

Arnaud

Re: Specify the color of VerticalNumberAxis

Post by Arnaud » Thu Feb 13, 2003 10:58 am

Salut Guillaume,

I have not looked at it yet, but in version 0.9.5, in com.jrefinery.chart.axis, there are two new classes that my interest You : HorizontalColorBarAxis and VerticalColorBarAxis.

Regards,
Arnaud

Guillaume Carriere

Re: Specify the color of VerticalNumberAxis

Post by Guillaume Carriere » Thu Feb 13, 2003 11:14 am

Hello,

I'v found the solution ....

axisDir.setTickMarkPaint(Color.BLUE);
axisDir.setLabelPaint(Color.BLUE);
axisDir.setTickLabelPaint(Color.BLUE);

and

axisVit.setTickMarkPaint(Color.RED);
axisVit.setLabelPaint(Color.RED);
axisVit.setTickLabelPaint(Color.RED);

Locked