iOS Scatter core plot with a gap

天大地大妈咪最大 提交于 2019-12-28 04:33:13

问题


How does one draw a scatter plot with a gap using core plot? I was using the core plot library. Everything is working fine but now I want to do a scatter plot with a gap at the beginning or in the middle of the dataline? Someone help me please?


回答1:


Have the datasource return nil or [NSNull null]. For example, if the plot has five data points and you return nil for the x or y field at index 2, the plot will draw the points at indices 0 and 1 connected by a line and indices 3 and 4 connected by a line with a gap in between.



来源:https://stackoverflow.com/questions/17333532/ios-scatter-core-plot-with-a-gap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!