plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

[BUG] violin plot show hovers in wrong positions after zoomed by rangeslider

Open likeben opened this issue 5 years ago • 4 comments
trafficstars

图片

likeben avatar Sep 14 '20 13:09 likeben

@likeben Is this a regression? If so which version caused it? Also we appreciate if you could possibly provide a "minimal" codepen.

archmoj avatar Sep 15 '20 22:09 archmoj

@archmoj

plotly version: the latest 1.55.2 codepen: https://codepen.io/likeben/pen/GRZBQww PS: there is no problem if layout.hovermode is "x unified"

图片

likeben avatar Sep 16 '20 02:09 likeben

It does not look like a regression or bug to me.

archmoj avatar Oct 26 '20 19:10 archmoj

@archmoj I think everything looks fine except the KDE hover label and effect. Here's what hover looks like on this plot with no range slider: Screen Shot 2020-10-26 at 5 35 16 PM But even without zooming, when you include a range slider the mouse-following crossbar disappears and the KDE label jumps to the middle: Screen Shot 2020-10-26 at 5 36 00 PM And then when you zoom in, it looks like the KDE point aligns itself with the middle of the same violin on the range slider, rather than the box in the main plot. The effect is particularly pronounced if you zoom toward one end but then hover on a violin near the other side of the plot. Screen Shot 2020-10-26 at 5 38 22 PM

alexcjohnson avatar Oct 26 '20 21:10 alexcjohnson