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

Buttons to choose 'hover to closest' and 'hover to compare' disappear since version 2.0

Open zyzhu opened this issue 4 years ago • 2 comments
trafficstars

Buttons to choose 'hover to closest' and 'hover to compare' disappear in versions from 2.0.0 to 2.3.1. See repo here https://codepen.io/zyzhu/pen/BaREOVg

image

Buttons are there in 1.58.4 image

If I change version to plotly-latest.min.js. The buttons show up. image

zyzhu avatar Aug 15 '21 21:08 zyzhu

You could use v1hovermode or hovercompare, hoverclosest, togglehover and togglespikelines in config similar to this codepen. Please see #5654 for more info.

In addition you could use layout.modebar.add. Please see #5660.

archmoj avatar Aug 16 '21 13:08 archmoj

Thanks for pointing that out. I didn't find v1hovermode, hovercompare, hoverclosest in the documentation here https://plotly.com/javascript/configuration-options/#remove-modebar-buttons. Adding togglehover only does not work. Maybe the documentation shall be updated.

zyzhu avatar Aug 16 '21 14:08 zyzhu