Frage

enter image description hereI am using Core Plot first time for Plotting graph

Some how I finally managed to plot points but I want to show exact value of plotted point on the graph in annotation style. I want to show exact points values same as shown in this Attached image(graph image) http://i.stack.imgur.com/PpyRj.png Please help me

Thanks in advance graph image

War es hilfreich?

Lösung

You have to display data labels (that is what they are called in CorePlot), some good information are here Core-Plot CPTScatterPlot data labels

To show data labels, you'll need to return the corresponding values from

-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index

Data labels do not appear by default. The automatic labels require both a labelTextStyle and labelFormatter to be set. Both of these properties default to nil which hides the labels.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top