Reputation: 899
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?
Upvotes: 2
Views: 890
Reputation: 27381
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.
Upvotes: 8