I think this is possible. https://www.npmjs.com/package/d3-node
Asif Mehedi
1

I don’t think we have enough data to form opinions. For example, I find it hard to believe that the generated HTML/SVG/etc. of something simple like a bar or line chart, can be nearly as large as D3 + charting library. But again, I don’t have any data. My hope is that people who are active in this field think about this issue, and can share the data.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.