简体   繁体   English

单击图形核心图

[英]Click on the graph core-plot

How to do that when you click on the graph, on the point (shows the value at that point)? 当您单击图形上的点时(显示该点的值)时该怎么做?

And how it make if i have 4 graph on one view. 以及如果我在一个视图上有4个图,它将如何实现。

Any examples? 有什么例子吗?

Thanks for Help! 感谢帮助!

Look at the example apps included with Core Plot. 查看Core Plot附带的示例应用程序。 The Plot Gallery has an example of adding a label when the user clicks a plot. 图库提供了一个示例,该示例在用户单击图时添加标签。 The Mac version of CPTTestApp shows another technique of drawing a crosshairs over the selected point on a scatter plot. Mac版的CPTTestApp显示了另一种在散点图上的选定点上绘制十字准线的技术。

Each plot has its own delegate that will be notified of the click. 每个图都有其自己的代表,该代表将被单击。 The delegate methods all have the sending plot as one of the parameters so you can use the same delegate object to handle more than one plot. 委托方法都将发送绘图作为参数之一,因此您可以使用同一个委托对象来处理多个绘图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM