Incorrect Highlight indicator value
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
## What did you do?
I have created a multiline chart, with a Coordinator class that has` ChartViewDelegate`. and placed a print function on `chartValueSelected `to check the selected value.
## What did you expect to happen?
Print the correct selected value for each dataset.
## What happened instead?
For second dataset it prints the correct value but not for the first one dataset. Also i see that highlight indicator keep stuck at second dataset.
**See video below.**
## Charts Environment
**Charts version:** 4.1.0
**Xcode version:** 14.0.1
**Swift version:** 5.7
**Platform(s) running Charts:** IOS 16.0
**macOS version running Xcode:** Monterey 12.6
## Demo Project
https://user-images.githubusercontent.com/63777299/193236947-85d40a28-8cbb-451b-8752-a8122d6232bc.mp4
As you can see the right side works perfect, it show the correct value en highlight indicator move correctly as well. But on the other side, it doesn't show the correct value and the indicator keep stuck at the right side.
**See source code below**
[test.swiftpm.zip](https://github.com/danielgindi/Charts/files/9682633/test.swiftpm.zip)
Contributor guide
Assessment
This issue has not been assessed yet.