Legend overriding not working

Legend overriding in not working in the latest version 1.25.2 however it was working before 1.25.0 version. You can see the following pen. proto.draw method is called which reverts the legend state.


See http://codepen.io/etpinard/pen/mmdNXL for working example in 1.25.0 and up.

PR https://github.com/plotly/plotly.js/pull/1432 added a double-click handler to legend items which broke your CodePen unfortunately. As that way of overriding the legend behavior is far from being an official feature, we won’t consider this a bug. We apologise for the inconvenience.

Thanks for the working example :slight_smile: . I don’t need double click functionality as of now so it is fine for me.