Black Lives Matter. Please consider donating to Campaign Zero's mission of ending police violence in America.
https://www.joincampaignzero.org

Screenshot of a plot in Javascript

Is there an API in Javascript from which I can take a screenshot of plotted graph?

https://github.com/plotly/plotly.js/issues/83

Thanks a lot, can you show me a sample usage in the function Plotly.Snapshot.toImage(gd, {format: ‘png’, width: 1000, height: 800}); what is gd … Thanks a lot in advance!!!

@drillmaps

Plotly.Snapshot.toImage(gd, {format: 'png', width: 1000, height: 800})

won’t work at the moment.

Follow issue https://github.com/plotly/plotly.js/issues/83 , the solution PR will contain examples of how to use it.