{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/113","labels_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/113/comments","events_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/113/events","html_url":"https://github.com/danielgindi/ios-charts/issues/113","id":81865577,"number":113,"title":"Can we add nil values to a dataset yet?","user":{"login":"AlBirdie","id":3041153,"avatar_url":"https://avatars.githubusercontent.com/u/3041153?v=3","gravatar_id":"","url":"https://api.github.com/users/AlBirdie","html_url":"https://github.com/AlBirdie","followers_url":"https://api.github.com/users/AlBirdie/followers","following_url":"https://api.github.com/users/AlBirdie/following{/other_user}","gists_url":"https://api.github.com/users/AlBirdie/gists{/gist_id}","starred_url":"https://api.github.com/users/AlBirdie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlBirdie/subscriptions","organizations_url":"https://api.github.com/users/AlBirdie/orgs","repos_url":"https://api.github.com/users/AlBirdie/repos","events_url":"https://api.github.com/users/AlBirdie/events{/privacy}","received_events_url":"https://api.github.com/users/AlBirdie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T10:25:43Z","updated_at":"2015-06-01T10:01:56Z","closed_at":null,"body":"Basically, I need to draw a chart that doesn't have continous data, so the y values could look like this;\r\n\r\nnil, Entry, Entry, nil, nil, nil, Entry,... you get the idea.\r\n\r\nThe chart should then just show gaps where there's no data for the corresponding x value. \r\nI'm pretty certain that this isn't supported yet, and I'm not sure how to that either to be honest.\r\nDo have an idea with regards to a suitable implementation for this?\r\n\r\nThere's already a feature request for this for the Android version (https://github.com/PhilJay/MPAndroidChart/issues/293). "},"comment":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/comments/107385991","html_url":"https://github.com/danielgindi/ios-charts/issues/113#issuecomment-107385991","issue_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/113","id":107385991,"user":{"login":"AlBirdie","id":3041153,"avatar_url":"https://avatars.githubusercontent.com/u/3041153?v=3","gravatar_id":"","url":"https://api.github.com/users/AlBirdie","html_url":"https://github.com/AlBirdie","followers_url":"https://api.github.com/users/AlBirdie/followers","following_url":"https://api.github.com/users/AlBirdie/following{/other_user}","gists_url":"https://api.github.com/users/AlBirdie/gists{/gist_id}","starred_url":"https://api.github.com/users/AlBirdie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlBirdie/subscriptions","organizations_url":"https://api.github.com/users/AlBirdie/orgs","repos_url":"https://api.github.com/users/AlBirdie/repos","events_url":"https://api.github.com/users/AlBirdie/events{/privacy}","received_events_url":"https://api.github.com/users/AlBirdie/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T10:01:56Z","updated_at":"2015-06-01T10:01:56Z","body":"Not sure how that would be applicable for the following implementation;\r\n\r\n    NSMutableArray *data = [self.dataSource.calculatedData objectAtIndex:0];\r\n    \r\n    NSMutableArray *xVals       = [NSMutableArray new];\r\n    NSMutableArray *yVals       = [NSMutableArray new];\r\n    NSMutableArray *barVals     = [NSMutableArray new];\r\n    \r\n    \r\n    int i = 0;\r\n    for (ChartDataPoint *currentItem in data) {\r\n\r\n        ChartDataEntry *lineEntry = [[ChartDataEntry alloc] initWithValue:[currentItem.yValue floatValue] xIndex:i];\r\n        BarChartDataEntry *barEntry = [[BarChartDataEntry alloc] initWithValue:[currentItem.yValue floatValue] xIndex:i];\r\n\r\n        [yVals addObject:lineEntry];\r\n        [barVals addObject:barEntry];\r\n        [xVals addObject:[self.dateFormatter stringFromDate:(NSDate *) currentItem.xValue]];\r\n\r\n        i++;\r\n    }\r\n\r\nSay I want to omit the first 10 y values. In that case I have to insert something so that the x values start from index 10 onwards."}}