tomwanzek / d3-ng2-service

A D3 service for use with Angular.
MIT License
205 stars 42 forks source link

Load svg from File #125

Open bene95 opened 6 years ago

bene95 commented 6 years ago

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