Legend items enable disable in horizantal stacked bar chart

  • I have used Horizantal stacked bar chart and it shows me legends on right side when i click on legend it disables, can i put one or all legends disable by default and it enables when user clicks on it
  • Is there any way to bind mouse click event on legend item click

Use visible: 'legendonly' (Single-Page Reference | JavaScript | Plotly)

Not at the moment. It is a scheduled enhancement though. Please subscribe to Dropdown legend items · Issue #207 · plotly/plotly.js · GitHub for development updates.