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
You can remove line main.js:15 and add
"canvas": "2"
as a dependency and this will "just work."However, a lot of Plotly functionality still doesn't work with this (a lot of text is missing for some reason).