neovis.js icon indicating copy to clipboard operation
neovis.js copied to clipboard

Directly render a graph to an image file (svg or png)

Open hunkim opened this issue 3 years ago • 3 comments

Is there any way to directly render a graph to an image file?

For example, can we do something like this?

neoViz.render("out.png");

hunkim avatar Aug 13 '22 00:08 hunkim

Im pretty sure the output is svg/canvas, you can easily take the element and search online how to do it 😅 but should be pretty easy

thebestnom avatar Aug 13 '22 17:08 thebestnom

@thebestnom Thanks. I tried to find the solution and googled it for several hours, but I could not find it.

Any hint?

hunkim avatar Aug 13 '22 23:08 hunkim

https://stackoverflow.com/questions/42663203/export-visjs-network-to-jpeg-png-image

thebestnom avatar Aug 13 '22 23:08 thebestnom