block by eesur 5d904ea198e9b219e95342dacd494f8b

d3js | saveSvgAsPng save download svg with css

Full Screen

Testing solutions for saving svg that contains external styles

The colours of the circles are set via css classes (not inline via d3) Just the svg node is saved, whilst keeping the external css using saveSvgAsPng (all client side)

Note: You can drag the circles and the image save the current interaction/render

index.html