How do I save/export an SVG file after creating an SVG with D3.js (IE, safari and chrome)?
There are 5 steps. I often use this method to output inline svg. get inline svg element to output. get svg source by XMLSerializer. add name spaces of svg and xlink. construct url data scheme of svg by encodeURIComponent method. set this url to href attribute of some “a” element, and right click this link … Read more