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

show exact data x and y values as cursor info in the histogram widget #1917

Closed
kswang1029 opened this issue Jul 20, 2022 · 0 comments · Fixed by #1918
Closed

show exact data x and y values as cursor info in the histogram widget #1917

kswang1029 opened this issue Jul 20, 2022 · 0 comments · Fixed by #1918
Assignees
Labels
bug Something isn't working

Comments

@kswang1029
Copy link
Collaborator

Describe the bug
Currently the displayed cursor "x" value in the histogram widget is derived from the plot domain, not the data domain (ie display the xy values of the nearest data point). For practical usages, we should show the x value based on the data points.

Screen.Recording.2022-07-20.at.11.50.38.mov

To Reproduce
Steps to reproduce the behavior:

  1. load an image and launch the histogram widget
  2. move cursor around on the histogram plot and observe the displayed cursor values
  3. y value is derived from the y value of the data point. This is correct.
  4. x value is not derived from the x value of the data point. Instead, it is derived from the plot domain. This is the issue.

Expected behavior
Cursor info in the histogram widget should show values of the nearest data point.

Platform info (please complete the following information):

  • OS [e.g. macOS Monterey]: macOS Monterey
  • Browser [e.g. chrome, safari, electron app]: chrome
  • Browser version [e.g. 22]: 103
  • Backend branch [e.g. dev, v3b2 release]: dev
  • Frontend branch [e.g. dev, v3b2 release]: dev
@kswang1029 kswang1029 added the bug Something isn't working label Jul 20, 2022
@kswang1029 kswang1029 self-assigned this Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant