Closed aasmune closed 8 months ago
Hi @aasmune,
Thank you for submitting this bug, I will look into this somewhere later this week and come back to you!
p.s: The aggregators that plotly-resampler employs are designed for selecting datapoints from consecutive/sequential/temporal data (which often boils down to selecting vertical extrema as can be seen in your resampled plot!). For x vs. y scatters, there may be other dimensionality reduction techniques that may be more suitable.
Kind regards, Jonas
Describe the bug :crayon: When using
register_plotly_resampler
, hover data specified throughhover_data
argument topx.scatter
sometimes shows up with incorrect values when hovering over a point with the mouse. The correct value is displayed when not usingregister_plotly_resampler
.Reproducing the bug :mag:
Printing the highlighted point in the screenshots:
Expected behavior :wrench: I expect the hover data to be correct for the displayed resampled point.
Screenshots :camera_flash: Without resampler - shows correct hover data![without_resampler](https://github.com/predict-idlab/plotly-resampler/assets/17825688/9d9622dd-dceb-4922-b917-c86e2c15c7a9)
With resampler - shows incorrect hover data![with_resampler](https://github.com/predict-idlab/plotly-resampler/assets/17825688/163a3ed4-2378-4135-b70a-2bb09c27d4e4)
Environment information: