Built with blockbuilder.org
Created
October 9, 2017 13:50
-
-
Save romsson/d3410cdb22ac03c251c1bba68a95dd88 to your computer and use it in GitHub Desktop.
pure svg bar chart
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
license: mit |
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> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<style> | |
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } | |
rect { | |
fill: none; | |
stroke: black; | |
stroke-width: 1px; | |
} | |
</style> | |
</head> | |
<body> | |
<svg width="960" height="500"><rect y="178" x="50" width="50" height="22"></rect><rect y="168" x="100" width="50" height="32"></rect><rect y="179" x="150" width="50" height="21"></rect><rect y="177" x="200" width="50" height="23"></rect><rect y="190" x="250" width="50" height="10"></rect><rect y="178" x="300" width="50" height="22"></rect><rect y="189" x="350" width="50" height="11"></rect><rect y="181" x="400" width="50" height="19"></rect><rect y="170" x="450" width="50" height="30"></rect><rect y="150" x="500" width="50" height="50"></rect></svg> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment