You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toolbar button "Export plot as png" does not always work properly on my plot.
If the browser is maximized when the page loads, the button exports an image with the default size (700x450) instead of the actual size of the rendered plot.
As soon as I resize my browser, the button works as expected, even if I maximize the window afterwards.
This may be related to the auto-scaling of the plot implemented as follows:
Hi,
The toolbar button "Export plot as png" does not always work properly on my plot.
If the browser is maximized when the page loads, the button exports an image with the default size (700x450) instead of the actual size of the rendered plot.
As soon as I resize my browser, the button works as expected, even if I maximize the window afterwards.
This may be related to the auto-scaling of the plot implemented as follows:
(I don't remember where I found this code, probably the plotly forum or stackoverflow)
Calling
resizePlot()
afterPlotly.plot(...)
fixes the problem, but I don't understand why it's required.You can reproduce the issue here: https://lastfm-stats.200d.net/?color=artist&timezone=Europe%2FParis&startDate=2018-01-01&endDate=2018-03-18&username=Yaurthek
The text was updated successfully, but these errors were encountered: