A simple template for blocks gists. The result can be found on the blocks account page.
Last active
July 25, 2018 21:24
-
-
Save jwdunn1/8bfef7ca97c4bc4aac6f8d4077a8f5de to your computer and use it in GitHub Desktop.
d3 http://bl.ocks.org/ template
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> | |
<meta charset="utf-8"> | |
<style> | |
/* css goes here */ | |
body { | |
font: 48px serif; | |
} | |
div#target { | |
text-align: left; | |
} | |
</style> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<div id="target"> | |
<!-- more d3 goes here --> | |
</div> | |
<script> | |
/* d3.js code goes here */ | |
d3.select("#target") | |
.style("width", "177px") | |
.style("height", "100px") | |
.selectAll("div") | |
.data(["hello", "world"]) | |
.enter() | |
.append("div") | |
.text((d) => d); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment