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

Set max highlight distance #1725

Closed
nicomarca opened this issue Oct 27, 2016 · 1 comment
Closed

Set max highlight distance #1725

nicomarca opened this issue Oct 27, 2016 · 1 comment

Comments

@nicomarca
Copy link

Hi,

I'm working on an interactive chart where the user is able to select a point from a scatter chart. It is working well, but i still have one issue : wherever the user tap on the chart, the closer point is selected (and i don't want that).
I saw on MPAndroidChart doc that a method called setMaxHighlightDistance(float distanceDp) exists, but I can't find an equivalent on IOS-Charts. Do you know one ?

Thanks

@liuxuan30
Copy link
Member

liuxuan30 commented Oct 27, 2016

take a look at ChartHighlighter. I am not sure if closestSelectionDetailByPixel or getMinimumDistance is the func you ask? They are called in getHighlight

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