Skip to content

Instantly share code, notes, and snippets.

View blakedietz's full-sized avatar
🚲
Life's too short, go ride a bike

Blake Dietz blakedietz

🚲
Life's too short, go ride a bike
View GitHub Profile
@blakedietz
blakedietz / index.html
Created September 22, 2013 17:18
A zoomable, 5th level iteration of Sierpinski's Carpet implemented in d3.js
<!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>
@blakedietz
blakedietz / index.html
Created September 17, 2013 03:46
A zoomable and pannable visualization of the cantor set.
<!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>
@blakedietz
blakedietz / data.js
Created August 10, 2013 21:33
Reusable and Configurable Pyramid Charts
var data = [
{
"state":"Alaska",
"percentage": -3.2
},
{
"state":"Alabama",
"percentage": -39.8
},
{
@blakedietz
blakedietz / BarChart.js
Last active December 20, 2015 21:39
Reusable Bar Charts
function BarChart()
{
// Default selector is the body
var selector = "body";
var data;
var xScale,
yScale;
var yAxis,
@blakedietz
blakedietz / data.js
Created July 28, 2013 01:25
An exercise in using d3.js to replicate barcharts found in http://www.cbpp.org/cms/?fa=view&id=3927#_ftn10 with d3.js
var data = [
{
"state":"Alaska",
"percentage": -3.2
},
{
"state":"Alabama",
"percentage": -39.8
},
{