I would like to be able to know when the user hovers or clicks on my label or legend items. Specifically, I would like to be able to highlight a given pie slice or bar trace when a particular label or legend item is hovered over. d3pie does this, and an example can be seen here: http://d3pie.org/#generator-start
As a starting point, it would be useful to have this click handler fire an event after it calls Plotly.restyle or Plotly.relayout:
|
traceToggle.on('click', function() { |
A hover handler for the same traces would help a lot as well.
I would like to be able to know when the user hovers or clicks on my label or legend items. Specifically, I would like to be able to highlight a given pie slice or bar trace when a particular label or legend item is hovered over. d3pie does this, and an example can be seen here: http://d3pie.org/#generator-start
As a starting point, it would be useful to have this
clickhandler fire an event after it callsPlotly.restyleorPlotly.relayout:plotly.js/src/components/legend/index.js
Line 484 in 47b13b0
A
hoverhandler for the same traces would help a lot as well.