Swap behavior between legendClick and legendDoubleClick

I’m perfectly fine with the way Plotly works, but manager intends on changing this behavior.

Is there a way to isolate chosen trace by single-click on legend instead of double?

Thank you.

There’s no “easy” way to do this unfortunately at the moment.

If you’re feeling adventurous, you could try to listen to plotly_legendclick and plotly_doubleclick and incorporate the logic found in

swapping the sections made for numClicks=1 and numClicks=2.

1 Like