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

LineChart point selection issue #5061

Open
ncubelic opened this issue May 23, 2023 · 3 comments
Open

LineChart point selection issue #5061

ncubelic opened this issue May 23, 2023 · 3 comments

Comments

@ncubelic
Copy link

ncubelic commented May 23, 2023

LineChart.zip

What did you do?

I'm having issues with LineChart when using numbers on y axis which differs on second or third decimal place. I can't select point on a graph. No matter which point on graph is selected, only first or last point is selected.

What did you expect to happen?

Point which is selected should be highlighted and selected.

What happened instead?

First or last point is selected.

Charts Environment

Charts version/Branch/Commit Number:
4.1.0

Xcode version:
Xcode 14.3

Swift version:
Swift 5

Platform(s) running Charts:
iOS

macOS version running Xcode:

Demo Project

LineChart.zip

@stas44812
Copy link

did you resolve this? facing same problem

@ncubelic
Copy link
Author

ncubelic commented Jun 10, 2023

@stas44812 Yes I resolved the issue. Problem was due to unsorted data set. I don’t know logic behind, but when you pass sorted data set (in my case by date), everything works perfectly.

@stas44812
Copy link

stas44812 commented Jun 10, 2023

thanks man! you saved my time

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

2 participants