Skip to content

Fix unified hoverlabels including data from different points#1921

Merged
aestoltm merged 5 commits intoubccr:xdmod11.0from
aestoltm:hover_bug
Dec 13, 2024
Merged

Fix unified hoverlabels including data from different points#1921
aestoltm merged 5 commits intoubccr:xdmod11.0from
aestoltm:hover_bug

Conversation

@aestoltm
Copy link
Copy Markdown
Contributor

@aestoltm aestoltm commented Oct 4, 2024

Description

When two different x-values share the same physical space due to the zoom level of the plot they can share a hoverlabel. Adjust the hoverdistance to 1 should help avoid two different x-values sharing a hoverlabel.

For the following chart
Before: Hovering over the last data point shows 11 elements in hoverlabel
hover_before

After: Hovering over the last data point shows 8 elements in hoverlabel which is the correct amount of data points
hover_after

Motivation and Context

Tests performed

Tested on my dev-port

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@aestoltm aestoltm added the bug Bugfixes label Oct 4, 2024
@aestoltm aestoltm self-assigned this Oct 4, 2024
@aestoltm aestoltm modified the milestones: 11.0.2, 11.0.1 Oct 4, 2024
@aestoltm aestoltm changed the base branch from main to xdmod11.0 November 22, 2024 18:58
@aestoltm aestoltm merged commit 0bb6620 into ubccr:xdmod11.0 Dec 13, 2024
@aestoltm aestoltm deleted the hover_bug branch December 13, 2024 16:10
aaronweeden pushed a commit to aaronweeden/xdmod that referenced this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants