News for hackers. Stuff that matters.
Re:D3 v4.0.0 released by neurotech1 on Wednesday June 29, 2016 @12:55AM (#11999574)
Use the Node.JS package on the server, then convert the SVG to PNG.

https://www.npmjs.com/package/d3

One minor caution is to avoid using CSS to style the SVG, because won't convert to PNG properly.

Use ImageMagick or the svg2png (PhantomJS based) package to convert.

https://www.npmjs.com/package/imagemagick-native

https://www.npmjs.com/package/svg2png

There are no comments on this comment yet.