Create a gist now

Instantly share code, notes, and snippets.

@mbostock /.block
Last active Jul 8, 2016

External SVG
license: gpl-3.0
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="https://d3js.org/d3.v4.js"></script>
<script>
d3.xml("rect01.svg").mimeType("image/svg+xml").get(function(error, xml) {
if (error) throw error;
document.body.appendChild(xml.documentElement);
});
</script>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fcsds
fcsds commented Feb 4, 2016

Question: How do I add other svg objects on top of the rectangle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment