Changing colour of tick marks

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

Changing colour of tick marks

Post by BH » Wed Sep 04, 2002 10:16 am

Hi there

Is it possible to change the colour of the tick marks from the default of black? I cannot find any method that does this.

If the colour of the grid lines are not black then it looks strange having black tick marks, our client wants the tick mark to be the same colour as the grid lines....

Many thanks
Belinda

josh

Re: Changing colour of tick marks

Post by josh » Wed Sep 04, 2002 7:48 pm

vAxis1.setTickLabelPaint(Color.red);

the tick mark will have the same color as the tick labels.

David Gilbert

Re: Changing colour of tick marks

Post by David Gilbert » Wed Sep 04, 2002 11:20 pm

Hi Belinda,

It is an oversight and I will add an attribute to control this for 0.9.4.

Regards,

DG.

BH

Re: Changing colour of tick marks

Post by BH » Thu Sep 05, 2002 8:06 am

Many thanks for the responses, Josh and David!

Locked