Is there an API in Javascript from which I can take a screenshot of plotted graph?
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!!!
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.