All examples By author By category About

sohaibghani1

d3js | saveSvgAsPng save download svg with css

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

forked from eesur's block: d3js | saveSvgAsPng save download svg with css