iOS Scatter core plot with a gap

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?

  • Multiple scatterplots using Core Plot and Swift
  • Hide alternate lines in scatter chart coreplot
  • Solutions Collect From Internet About “iOS Scatter core plot with a gap”

    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.