{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/1151","repository_url":"https://api.github.com/repos/danielgindi/Charts","labels_url":"https://api.github.com/repos/danielgindi/Charts/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/Charts/issues/1151/comments","events_url":"https://api.github.com/repos/danielgindi/Charts/issues/1151/events","html_url":"https://github.com/danielgindi/Charts/issues/1151","id":160960494,"number":1151,"title":"Changing chart data + autoScaleMinMaxEnabled causes crash","user":{"login":"debriennefrancoisjean","id":5270669,"avatar_url":"https://avatars.githubusercontent.com/u/5270669?v=3","gravatar_id":"","url":"https://api.github.com/users/debriennefrancoisjean","html_url":"https://github.com/debriennefrancoisjean","followers_url":"https://api.github.com/users/debriennefrancoisjean/followers","following_url":"https://api.github.com/users/debriennefrancoisjean/following{/other_user}","gists_url":"https://api.github.com/users/debriennefrancoisjean/gists{/gist_id}","starred_url":"https://api.github.com/users/debriennefrancoisjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debriennefrancoisjean/subscriptions","organizations_url":"https://api.github.com/users/debriennefrancoisjean/orgs","repos_url":"https://api.github.com/users/debriennefrancoisjean/repos","events_url":"https://api.github.com/users/debriennefrancoisjean/events{/privacy}","received_events_url":"https://api.github.com/users/debriennefrancoisjean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-17T19:39:01Z","updated_at":"2016-06-17T19:53:59Z","closed_at":null,"body":"In this particular project, I need to change my Chart's data following the pressing of a button.\r\n\r\nI create a new dataset and set the chart's data this way:\r\n\r\n```\r\nchartView.data = newData\r\nchartView.notifyDataSetChanged()\r\n\r\n```\r\nWhen my chart has the property autoScaleMinMaxEnabled set to false, this works perfectly.\r\n\r\nHowever, if this property is true, I get an error in func ChartDataSet.calcMinMax(start start: Int, end: Int) at the line:\r\n\r\n```\r\nfor i in start ... endValue\r\n\r\n```\r\n\r\nBecause start's value is greater than endValue.\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/comments/226866243","html_url":"https://github.com/danielgindi/Charts/issues/1151#issuecomment-226866243","issue_url":"https://api.github.com/repos/danielgindi/Charts/issues/1151","id":226866243,"user":{"login":"liuxuan30","id":4375169,"avatar_url":"https://avatars.githubusercontent.com/u/4375169?v=3","gravatar_id":"","url":"https://api.github.com/users/liuxuan30","html_url":"https://github.com/liuxuan30","followers_url":"https://api.github.com/users/liuxuan30/followers","following_url":"https://api.github.com/users/liuxuan30/following{/other_user}","gists_url":"https://api.github.com/users/liuxuan30/gists{/gist_id}","starred_url":"https://api.github.com/users/liuxuan30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuxuan30/subscriptions","organizations_url":"https://api.github.com/users/liuxuan30/orgs","repos_url":"https://api.github.com/users/liuxuan30/repos","events_url":"https://api.github.com/users/liuxuan30/events{/privacy}","received_events_url":"https://api.github.com/users/liuxuan30/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T19:53:59Z","updated_at":"2016-06-17T19:53:59Z","body":"are you able to fix it? Seems like the calc here is wrong. What's the start and end value?\r\n\r\nIs it reproducible with ChartsDemo? If you can provide some code to reproduce with ChartsDemo, that's better."}}
{"actor":{"display_login":"liuxuan30"}}