plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Add HTML as mode bar download option

Open mneilly opened this issue 4 years ago • 2 comments

Currently, the mode bar download button can support png, svg, jpeg and webp as options to toImageButtonOptions. There is also fig.write_html() which can be used too save an interactive html file.

It would be useful to support html for the mode bar download button to avoid the necessity of adding a dcc.Download explicitly and keep to a consistent interface... Or, alternately, allow the user to provide custom behavior.

mneilly avatar Aug 26 '22 15:08 mneilly

See #2114 for a discussion on custom modebar buttons

AaronStiff avatar Mar 23 '23 17:03 AaronStiff

I couldn't understand how to save the figure as html using the custom modebar button.

AhmedThahir avatar Oct 07 '23 20:10 AhmedThahir