How to make the coordinate user interactive in core plot
I am kind of trying to get the flow of core plot. I have implemented the graph with my x-axis time(hours) and y axis to be some values. Now, i wanted to make each coordinate user interactive, such that, if the user touches each coordinate, I should be able to get the X and Y value of it. I also came across this question while sear开发者_开发知识库ching for some tips.How to make the coordinate of a graph user interactive? But unfortunately, I couldn't find any stubs as mentioned in the answers like mouseOrFingerDownAtPoint.
It would be really great if some one helps me find out, where I should implement these functions in the core plot framework.
The interaction methods have been renamed to pointingDevice...Event
. See the CPResponder
docs for info.
All of the plots can be configured to respond to touches. You implement the corresponding delegate protocol in your controller and set the delegate property of the plot. The delegate method will tell you the data index of the point that was touched. You can use that index to find the coordinates in your data set. Look at the example programs--several of them demonstrate the plot delegate.
精彩评论