Plotly.NET icon indicating copy to clipboard operation
Plotly.NET copied to clipboard

Add ImageExport renderer based on running node.js

Open kMutagene opened this issue 2 years ago • 0 comments

Description

As plotly.js, the underlying library that Plotly.NET is using needs an environment that can execute javascript to render images programmatically.

https://github.com/tjanczuk/edge seems to be able to run javascript code in node.js from .NET, meaning it should be possible to use plotly.js to render our json objects and save them to a file via node. This would be a big addition, because it would not need a headless browser to achieve this, just a node installation.

Pointers

  • here is an answer that shows how to do this with jsdom: https://stackoverflow.com/a/76070903/5675597
  • A reference implementation for this using PuppeteerSharp can be seen here

kMutagene avatar Sep 22 '23 08:09 kMutagene