GraphKit
GraphKit copied to clipboard
Multi line graph with unequal data set
Hi, Am trying to draw a multi-line graph, what i have noticed is, if the data set have same number if values then only line will be drawn complete, i have attached a sample project, tap on, line graph and see the blue line , if the data is this ,line is perfect self.data = @[ @[@10, @4, @8, @2, @9, @3, @6], @[@1, @2, @3, @4, @5, @6, @10] ];
if the data has been changed to this self.data = @[ @[@10, @4, @8, @2, @9, @3, @6], @[@1, @2, @3] ]; line doesn't reach till the end, lets assume i have number 3 which is for year 2007 and number 2 is for 2003 but i dont have any data for between 2003 and 2007 but i want by line to reach 2007 to reach till the end. i have attached a sample project, please check line graph. GraphKit-master 4.zip