This repository was archived by the owner on Jun 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 143
take into account the size of the container when rendering a PNG of the image #199
Labels
Comments
Is there any progress on this? |
@etpinard could we add a flag to |
I implemented my own download button, which gets the size of the dom element:
|
Is it possible to implement this on py.plotly? |
@dawehner can this be applied in plotly.py |
@ijustmadethisforplotly I don't know, I'm not using py.plotly. We use using the plotly JS library directly. |
This is now possible via |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
plotly.js won't take into the size of the container when rendering an image (plotly/plotly.js#1576) and almost all dash app's graphs are going to be in responsive containers with dynamic sizes.
so, we should add a workaround to
dcc.Graph
to override the download png behaviour so that the graph is properly sized.originally reported in https://community.plot.ly/t/save-plot-as-png-sizing-and-positioning/10166
The text was updated successfully, but these errors were encountered: