MPAndroidChart
MPAndroidChart copied to clipboard
Fix issue #4214
setting xAxis label count with data set changes results in old dataset values passed to formatter
PR Checklist:
- [ x] I have tested this extensively and it does not break any existing behavior.
- [ ] I have added/updated examples and tests for any new behavior.
- [ ] If this is a significant change, an issue has already been created where the problem / solution was discussed: [N/A, or add link to issue here]
PR Description
Not always recreating entries array caused this bug.
It only removes if (mAxis.mEntries.length < n) {
check, always recreates the array
Because it fixes the unwanted behavior.
Why's no-one merging this?
Because it's a dead repo. I at least helped myself and merged a lot of open pull requests https://github.com/AppDevNext/MPAndroidChart/pull/70
https://github.com/AppDevNext/MPAndroidChart/releases/tag/3.1.0.11