-
-
Save marionzualo/8aebee3766788bb21105 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/xagone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<h3>SVG bar</h3> | |
<svg> | |
<rect width="50" height="300" style="fill: blue"/> | |
</svg> | |
<h3>D3 bar</h3> | |
<script> | |
d3.select("body") | |
.append("svg") | |
.append("rect") | |
.attr("width", 50) | |
.attr("height", 300) | |
.style("fill", "blue"); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment