Built with blockbuilder.org
Last active
January 30, 2019 16:36
-
-
Save madams1/fc7edb372bfce379abde0024b16215f1 to your computer and use it in GitHub Desktop.
bound_data_1
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.v5.min.js"></script> | |
</head> | |
<body> | |
<div class="chart"> | |
<p>I'm</p> | |
<p>starting</p> | |
<p>to</p> | |
<p>learn</p> | |
<p>D3.js</p> | |
<p>!</p> | |
</div> | |
<script> | |
d3.selectAll("p") | |
.data([8, 12, 16, 24, 36, 48]) | |
.style("font-size", function(d) { return d + "px" }) | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment