Built with blockbuilder.org
forked from molliemarie's block: EmptySVG
license: mit |
Built with blockbuilder.org
forked from molliemarie's block: EmptySVG
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v5.min.js"></script> | |
<style type="text/css"> | |
svg { | |
border:1px solid #f0f; | |
} | |
</style> | |
<body></body> | |
<script> | |
d3.select("body").append("svg") | |
.attr("height", "600") | |
.attr("width", "600") | |
.append("g") | |
.attr("transform", "translate(12, 150)") | |
.attr('class', 'sampleSvg') | |
.attr('class', 'sampleSvg'); | |
</script> |