d3-ng2-service
d3-ng2-service copied to clipboard
Load svg from File
Hi,
is it possible to import a svg file via angular and typescript similar to javascript and then edit it?
Like this in JS
d3.xml("test.svg").mimeType("image/svg+xml").get(function(error, xml) { if (error) throw error; d3.select("#svgEmbed").node().appendChild(xml.documentElement); });
Thanks for your help