How to hide the label for just one datapoint in line series


#1

i have a requirement to hide label for a particular datapoint on a simple line series. Is there any way to do it?


#2

HI Veerun,

You can do this if you implement the delegate method: sChart:alterDataPointLabel:forDataPoint:inSeries  and do label.hidden = YES for the particlar data point you don’t want to display the label for.

I hope that helps.

Sam


#3

Thank you. I have implemented the same way you have answered. However, i have used label.text = @’"".

Your answer is actually better to hide it then just put an empty string.

Appreciate your response