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

Fix for issue where data points are not highlighted #4613

Closed

Conversation

gavynriebau
Copy link

Issue Link 🔗

Fixes #4609 and possibly also #4579

Goals ⚽

Improve the highlighting / selection behavior of line charts

Implementation Details 🚧

The entriesForXValue func finds the data entries for a given x-axis
value. It used an optimization where it would do a binary search to find
the first matching entry then take a slice of data stopping when no more
entries matched.

The optimized code uses the partitionIndex function but the filter predicate
used in this function was incorrect.

Testing Details 🔍

Tested by altering the demo project to use the forked version of the code and confirming the broken behaviour works after the fix is applied

Correct filter predicate used when calling the `partitioningIndex` func
while calculating the `entriesForXValue`
@We-Are-Empire
Copy link

Has this been merged? I'm still seeing this issue

@417-72KI
Copy link
Contributor

waiting for merge

@FelixHerrmann
Copy link
Contributor

Same, otherwise 4.0 is useless...
Unfortunately there is no activity in this repo since February😕

@adirkol
Copy link

adirkol commented Dec 8, 2021

Please merge...

@pmairoldi
Copy link
Collaborator

Closed in favour of #4721

@pmairoldi pmairoldi closed this May 25, 2022
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

Successfully merging this pull request may close these issues.

Highlighting buggy / not working consistently
6 participants