ios - How to create and display labels to show the X/Y values when you click on a Shinobi chart? -


If a point is clicked in a Shinobi chart for ISO, then I create and show labels with X and Y values I'm trying to

I have found the first part of the answer here : (zero) sChart: (Shinobich *) Chart Toolbox selectionfosource: Point to the SChartSeries * series: (SChartDataPoint *) Datapoint on pixel corrupt: (CP point) pixelpoint {nslog (@ "x value:% @", datapoint.exlue); NSLog (@ "y Value:% @", Datapoint YValue); // Here you can create a label to show x / y values ​​or even add an annotation)

I can create text strings with it:

  [NSString stringWithFormat: @ "Zodiac:% @ to% @", Datapoint YVALUE, datapoint.xValue];   

But how to design this NSString by creating labels and using Shinbee charts?

Why not use the previously provided ScrartCrossHair class instead of where users put the tap Do you worry about it? You have to enable crosshairs for each of your series - in this way you can only meet with a crosshairs on the subset of your series if you like. You can enable crosshairs on a series like this:

  mySeries.crosshairEnabled = YES;   

Then press and hold your chart to activate the crosshairs. You can subclass your SchartCrosshair and some really cool things like putting it sub-chart!

CrossHayer brings much more functionality than adding and removing labels in your chart - though this will also work

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -