Generate plotly.js images (only svg for now) in Node.js using jsdom.
npm start
which outputs fig.svg
- Try using the
canvas
npm package to support png and jpeg (and webp?) exports - Try to incorporate
headless-gl
into plotly.js to support exports for WebGL-based graphs
I'm going to leave this here in case anyone finds it useful. I was able to generate all of the Plotly charts with Puppeteer server side.
This returns a base64 encoded png.
Here is an example of how to use it.