{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/407","repository_url":"https://api.github.com/repos/danielgindi/ios-charts","labels_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/407/comments","events_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/407/events","html_url":"https://github.com/danielgindi/ios-charts/issues/407","id":107662099,"number":407,"title":"Cubic Line goes too much over the top or below bottom. Needs flattening.","user":{"login":"zxy198717","id":785333,"avatar_url":"https://avatars.githubusercontent.com/u/785333?v=3","gravatar_id":"","url":"https://api.github.com/users/zxy198717","html_url":"https://github.com/zxy198717","followers_url":"https://api.github.com/users/zxy198717/followers","following_url":"https://api.github.com/users/zxy198717/following{/other_user}","gists_url":"https://api.github.com/users/zxy198717/gists{/gist_id}","starred_url":"https://api.github.com/users/zxy198717/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxy198717/subscriptions","organizations_url":"https://api.github.com/users/zxy198717/orgs","repos_url":"https://api.github.com/users/zxy198717/repos","events_url":"https://api.github.com/users/zxy198717/events{/privacy}","received_events_url":"https://api.github.com/users/zxy198717/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danielgindi/ios-charts/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/danielgindi/ios-charts/labels/feature","name":"feature","color":"2d9e11"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-09-22T07:48:47Z","updated_at":"2016-03-10T11:36:47Z","closed_at":null,"body":"![snip20150922_1](https://cloud.githubusercontent.com/assets/785333/10013135/1943e656-6141-11e5-9aaf-8a0750da7033.png)\r\n\r\nLike the picture, broken sometimes, anyone can help?\r\n\r\nset1 = [[LineChartDataSet alloc] initWithYVals:yVals label:@\"DataSet 1\"];\r\nset1.drawCubicEnabled = YES;\r\nset1.cubicIntensity = 0.5;\r\n\r\nWhen I set `drawCubicEnabled` is `NO`, The chart seems ok.\r\n"},"comment":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/comments/194802317","html_url":"https://github.com/danielgindi/ios-charts/issues/407#issuecomment-194802317","issue_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/407","id":194802317,"user":{"login":"mslazynski","id":8442722,"avatar_url":"https://avatars.githubusercontent.com/u/8442722?v=3","gravatar_id":"","url":"https://api.github.com/users/mslazynski","html_url":"https://github.com/mslazynski","followers_url":"https://api.github.com/users/mslazynski/followers","following_url":"https://api.github.com/users/mslazynski/following{/other_user}","gists_url":"https://api.github.com/users/mslazynski/gists{/gist_id}","starred_url":"https://api.github.com/users/mslazynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mslazynski/subscriptions","organizations_url":"https://api.github.com/users/mslazynski/orgs","repos_url":"https://api.github.com/users/mslazynski/repos","events_url":"https://api.github.com/users/mslazynski/events{/privacy}","received_events_url":"https://api.github.com/users/mslazynski/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T11:36:47Z","updated_at":"2016-03-10T11:36:47Z","body":"@danielbmarques IMHO UIBezierPath is not relevant, it works almost exactly like the CGPathCreateMutable. The problem is that there is no (at least i don't know any) spline interpolation method which takes into consideration the relevant constraints. I haven't studied the JBChartView approach, but the BEMSimpleLineGraph library mitigates the error by **not using** any interpolation, it simply draws bezier curves between points. It works for very simple data, but in most cases it creates ugly \"bumpy\" plots.\r\n\r\nCan anyone confirm that JBChartView doesn't have the same problem? I will test in my free time, but AFAIK it should have exactly the same issues. "}}