问题
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