Plotly.js: Using "update" method in button created using updatemenus removes the modebar

Created on 1 May 2019  路  3Comments  路  Source: plotly/plotly.js

The issue can be reproduced on the Plotly website itself. Navigate to https://plot.ly/javascript/custom-buttons/#update-button

When you hover over the chart, you can view the modebar.

Screen Shot 2019-05-01 at 11 57 30 AM

When you click on any button, the modebar disappears.

Screen Shot 2019-05-01 at 11 57 40 AM

bug

Most helpful comment

I know the issue is closed, but it happens the same when using restyle method, which can be seen in the demos online (https://plotly.com/javascript/custom-buttons/). I was wondering if that can also be fixed?

All 3 comments

Thanks for reporting!

The report feels similar to https://github.com/plotly/plotly.js/issues/3809

This is probably a side-effect of #3589

I know the issue is closed, but it happens the same when using restyle method, which can be seen in the demos online (https://plotly.com/javascript/custom-buttons/). I was wondering if that can also be fixed?

Was this page helpful?
0 / 5 - 0 ratings