{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/986","repository_url":"https://api.github.com/repos/danielgindi/Charts","labels_url":"https://api.github.com/repos/danielgindi/Charts/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/Charts/issues/986/comments","events_url":"https://api.github.com/repos/danielgindi/Charts/issues/986/events","html_url":"https://github.com/danielgindi/Charts/issues/986","id":151629352,"number":986,"title":"autoScaleMinMaxEnabled does not work with Candle Charts ","user":{"login":"rick-kln","id":533058,"avatar_url":"https://avatars.githubusercontent.com/u/533058?v=3","gravatar_id":"","url":"https://api.github.com/users/rick-kln","html_url":"https://github.com/rick-kln","followers_url":"https://api.github.com/users/rick-kln/followers","following_url":"https://api.github.com/users/rick-kln/following{/other_user}","gists_url":"https://api.github.com/users/rick-kln/gists{/gist_id}","starred_url":"https://api.github.com/users/rick-kln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rick-kln/subscriptions","organizations_url":"https://api.github.com/users/rick-kln/orgs","repos_url":"https://api.github.com/users/rick-kln/repos","events_url":"https://api.github.com/users/rick-kln/events{/privacy}","received_events_url":"https://api.github.com/users/rick-kln/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-28T12:28:41Z","updated_at":"2016-05-15T18:19:55Z","closed_at":"2016-05-15T06:47:24Z","body":"Setting `chartview.autoScaleMinMaxEnabled = true` works as expected on my line charts. However on my candle chart the application crashes if `autoScaleMinMaxEnabled` is set to `true`.\r\n\r\nThe relevant part of the stacktrace is here:\r\n```\r\n#0\t0x0170c11c in CandleChartDataSet.calcMinMax(start : Int, end : Int) -> () at /Users/dcg/Desktop/git/ios-charts/Charts/Classes/Data/Implementations/Standard/CandleChartDataSet.swift:48\r\n#1\t0x0170c158 in @objc CandleChartDataSet.calcMinMax(start : Int, end : Int) -> () ()\r\n#2\t0x016f714c in ChartData.calcMinMax(start : Int, end : Int) -> () at /Users/dcg/Desktop/git/ios-charts/Charts/Classes/Data/Implementations/Standard/ChartData.swift:167\r\n#3\t0x0176df90 in BarLineChartViewBase.calcMinMax() -> () at /Users/dcg/Desktop/git/ios-charts/Charts/Classes/Charts/BarLineChartViewBase.swift:320\r\n#4\t0x0176776c in CandleStickChartView.calcMinMax() -> () at /Users/dcg/Desktop/git/ios-charts/Charts/Classes/Charts/CandleStickChartView.swift:30\r\n#5\t0x0176d8d4 in BarLineChartViewBase.notifyDataSetChanged() -> () at /Users/dcg/Desktop/git/ios-charts/Charts/Classes/Charts/BarLineChartViewBase.swift:293\r\n#6\t0x0174dd58 in ChartViewBase.data.setter ()\r\n```\r\nAny ideas as to why this might be happening? Is the documentation wrong when it states that `autoScaleMinMaxEnabled` applies to candle charts too?\r\n"},"comment":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/comments/219301650","html_url":"https://github.com/danielgindi/Charts/issues/986#issuecomment-219301650","issue_url":"https://api.github.com/repos/danielgindi/Charts/issues/986","id":219301650,"user":{"login":"rick-kln","id":533058,"avatar_url":"https://avatars.githubusercontent.com/u/533058?v=3","gravatar_id":"","url":"https://api.github.com/users/rick-kln","html_url":"https://github.com/rick-kln","followers_url":"https://api.github.com/users/rick-kln/followers","following_url":"https://api.github.com/users/rick-kln/following{/other_user}","gists_url":"https://api.github.com/users/rick-kln/gists{/gist_id}","starred_url":"https://api.github.com/users/rick-kln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rick-kln/subscriptions","organizations_url":"https://api.github.com/users/rick-kln/orgs","repos_url":"https://api.github.com/users/rick-kln/repos","events_url":"https://api.github.com/users/rick-kln/events{/privacy}","received_events_url":"https://api.github.com/users/rick-kln/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T18:19:55Z","updated_at":"2016-05-15T18:19:55Z","body":"Thanks for taking a look at it, it must be the combination of options I have that causes it. I have two line charts and one candle chart. Same setup function for all 3. The candle chart and one of the line charts experience the crash while the other does not, this makes me assume it is the data causing it. I don't have time to prepare a demo right now but I will do it next weekend. You can leave the issue closed for now."}}