I have a graph with multiple scatter plots in same plot area. X axis always is fixed with the dates of month 1-31. For some days there's no y-values (as you can see in the image)... but I need to join these points by line (eg: point 1 and 12 then 12 and 16 ...).
Image : 
This is the array I passed as the plot records
arrType1 = [[NSMutableArray alloc]initWithObjects:@"123",[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],@"234",[NSNull null],@"34",@"69",[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],@"45",[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],[NSNull null],@"23", nil];
core-plot datasource methods
#pragma mark - CPTPlotDataSource methods
-(NSUInteger)numberOfRecordsForPlot:(CPTPlot *)plot {
return [[[CPDStockPriceStore sharedInstance] datesInMonth] count];
}
-(NSNumber *)numberForPlot:(CPTPlot *)plot field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index {
NSInteger valueCount = [[[CPDStockPriceStore sharedInstance] datesInMonth] count];
switch (fieldEnum) {
case CPTScatterPlotFieldX:
if (index < valueCount) {
return [NSNumber numberWithUnsignedInteger:index];
}
break;
case CPTScatterPlotFieldY:
if ([plot.identifier isEqual:CPDTickerSymbolAAPL] == YES) {
return [arrType1 objectAtIndex:index];
}
else if ([plot.identifier isEqual:CPDTickerSymbolGOOG] == YES) {
return [arrType2 objectAtIndex:index];
}
else if ([plot.identifier isEqual:CPDTickerSymbolMSFT] == YES) {
return [arrType3 objectAtIndex:index];
}
break;
}
return [NSDecimalNumber zero];
}
How can I do It? Any ideas...