Skip to content

Instantly share code, notes, and snippets.

@jmuyskens
Created January 26, 2015 15:37
Show Gist options
  • Save jmuyskens/b3b160f9f015100d768f to your computer and use it in GitHub Desktop.
Save jmuyskens/b3b160f9f015100d768f to your computer and use it in GitHub Desktop.
d3.xml(filename, "image/svg+xml", function(xml) {
var importedNode = document.importNode(xml.documentElement, true);
d3.select(element[0]).node().appendChild(importedNode);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment