Disable legend click functionality (hiding traces)

As of v1.37 (and specifically https://github.com/plotly/plotly.js/pull/2581) you can disable hiding traces by legend click using the plotly_legendclick event:

gd.on('plotly_legendclick',function() { return false; })
2 Likes