✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Generate Report

Hey, Plotly.js Community,

I see that I can use Plot.ly Python to generate a pdf report with Plotly graphs, but I’m working in JavaScript and I don’t see a way to do the same. I can use Node.js with a package called PDFKit to create PDF reports.

In the report I’m creating, I need to generate images of the graphs that are generated in the Plotly.js application. Is there a method to call to generate those images?

Thanks for any insight!

Apologies for not seeing the Node.js API. I was able to use plotly.getImage() for this particular problem.

There’s also this https://plot.ly/javascript/plotlyjs-function-reference/#plotlydownloadimage

if you prefer download your images client-side.