iOS Scatter核心情节有差距 [英] iOS Scatter core plot with a gap

查看:172
本文介绍了iOS Scatter核心情节有差距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用核心图绘制带有间隙的散点图?我正在使用核心情节库。一切都工作正常,但现在我想做一个散点图,在数据线的开头或中间有间隙?有人帮我吗?

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?

推荐答案

让数据源返回 nil [NSNull null] 。例如,如果绘图有五个数据点,并且您为索引2处的x或y字段返回 nil ,则绘图将绘制由连接的索引0和1处的点。一条线和指数3和4由一条线相连,中间有一个间隙。

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.

这篇关于iOS Scatter核心情节有差距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆