Colouring individual tick mark labels differently


#1

Hi,

Is there a way I can I alter the colours on individual tick mark labels?  I’d like the tick mark labels for the upper and lower temperature limits on my axis to be rendered in red and blue respectively, with all other labels rendered in white (my axis has a black background). 

Thanks!


#2

Hey Partha!

Yes, all of the tickmarks are passed to the delegate just before they are added to the chart. You can use this opportunity to make any changes you like directly to the label itself:

-(void)sChart:(ShinobiChart *)chart alterTickMark:(SChartTickMark *)tickMark beforeAddingToAxis:(SChartAxis *)axis;

The label is a property on the SChartTickMark object passed to the method - simply update the textColor on the lowest and highest  :sunglasses: