Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

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' (https://plot.ly/javascript/reference/#bar-visible)

Not at the moment. It is a scheduled enhancement though. Please subscribe to https://github.com/plotly/plotly.js/issues/207 for development updates.