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"> | |
<title>Sierpinski Carpet</title> | |
<script src="http://d3js.org/d3.v2.min.js"></script> | |
<body> | |
<script src="render.js"></script> | |
</body> | |
</html> |
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"> | |
<title>Zoom + Pan: Cantor Set</title> | |
<script src="http://d3js.org/d3.v2.min.js"></script> | |
<body> | |
<script src="render.js"></script> | |
</body> | |
</html> |
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
var data = [ | |
{ | |
"state":"Alaska", | |
"percentage": -3.2 | |
}, | |
{ | |
"state":"Alabama", | |
"percentage": -39.8 | |
}, | |
{ |
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
function BarChart() | |
{ | |
// Default selector is the body | |
var selector = "body"; | |
var data; | |
var xScale, | |
yScale; | |
var yAxis, |
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
var data = [ | |
{ | |
"state":"Alaska", | |
"percentage": -3.2 | |
}, | |
{ | |
"state":"Alabama", | |
"percentage": -39.8 | |
}, | |
{ |
NewerOlder