Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifyDataSetChanged() crash when datapoint is highlighted in LineChartView #3759

Closed
1 task done
MEnnabah opened this issue Nov 27, 2018 · 1 comment
Closed
1 task done

Comments

@MEnnabah
Copy link

MEnnabah commented Nov 27, 2018

What did you do?

1- Create LineChartView object.
2- Set its data, and notifyDataSetChanged()
3- Select a data point on the LineChartView.
4- Set its data with empty LineChartData this time, like this: LineChartData.init(dataSets: [])
5- notifyDataSetChanged()

What did you expect to happen?

No crash because of empty LineChartData

What happened instead?

Crash

Charts Environment

Charts version/Branch/Commit Number:
Latest
Xcode version:
10.1
Swift version:
4.2
Platform(s) running Charts:
iOS

screenshot 2018-11-27 at 5 02 32 am

screenshot 2018-11-27 at 5 02 56 am

@MEnnabah
Copy link
Author

Just call clear() on the ChartView

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant