Skip to content

Fix "closestToY" functionality in DataSet.getEntryIndex#3463

Open
Jetz72 wants to merge 1 commit intoPhilJay:masterfrom
Jetz72:patch-2
Open

Fix "closestToY" functionality in DataSet.getEntryIndex#3463
Jetz72 wants to merge 1 commit intoPhilJay:masterfrom
Jetz72:patch-2

Conversation

@Jetz72
Copy link
Copy Markdown

@Jetz72 Jetz72 commented Sep 27, 2017

getEntryIndex has a "closestToY" parameter that appears to be for disambiguating cases where points have the same X value but different Y positions. The loop that searches entries with matching X values for the closest Y value is bugged, and will not correctly locate the nearest entry due to a bug on line 362. This corrects that behavior, and consequently, allows the user to select the intended point when several entries have the same X value.

getEntryIndex has a "closestToY" parameter that appears to be for disambiguating cases where points have the same X value but different Y positions. The loop that searches entries with matching X values for the closest Y value is bugged, and will not correctly locate the nearest entry due to a bug on line 362. This corrects that behavior, and consequently, allows the user to select the intended point when several entries have the same X value.
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.

1 participant