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
The margins don't seem to get adjusted properly. The settings are ignored, and the legend text gets cut off. I guess this might be due to poor support in jsdom. Any ideas for a workaround?