How to get the Download plot as png button without raw_plotly_config: true
??
#486
-
I noticed when checking out a yaml for another chart that it had this option to take a screenshot of the chart. This option appears because the yaml contains the line: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can override config:
modeBarButtonsToRemove: ["resetScale2d", "toImage", "lasso2d", "select2d"] So you could do this: config:
modeBarButtonsToRemove: ["resetScale2d", "lasso2d", "select2d"] which will not remove the |
Beta Was this translation helpful? Give feedback.
-
Perfect, Thanks!! |
Beta Was this translation helpful? Give feedback.
You can override
config
to change the buttons without usingraw_plotly_config
.The default is:
(all defaults here)
So you could do this:
which will not remove the
toImage
button