| <!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
commented
Feb 4, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question: How do I add other svg objects on top of the rectangle?