Instantly share code, notes, and snippets.

View animation.html
<style>
body {
width: 1000px;
margin: 0 auto;
padding: 0;
}
</style>
<canvas id='painting' width=740 height=740></canvas>
<script src="d3.v4.js"></script>
<script>
View mortality-age-year.tsv
Notes Age Group Age Group Code Year Year Code Deaths Population Crude Rate
< 1 year 1 1999 1999 27937 3795762 736.0
< 1 year 1 2000 2000 28035 3805648 736.7
< 1 year 1 2001 2001 27568 4012658 687.0
< 1 year 1 2002 2002 28034 3951461 709.5
< 1 year 1 2003 2003 28025 3975871 704.9
< 1 year 1 2004 2004 27936 4014258 695.9
< 1 year 1 2005 2005 28440 4004393 710.2
< 1 year 1 2006 2006 28527 4041738 705.8
< 1 year 1 2007 2007 29138 4147997 702.5
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
</style>
<body>
<canvas id="painting" width=960 height=500>
<script src="https://d3js.org/d3.v4.js"></script>
<script>
var canvas = document.getElementById("painting");
var ctx = canvas.getContext("2d");
View README.md
View .block
license: gpl-3.0
height: 560
border: no
View .block
height: 2000
border: no
View .block
height: 1280
border: no
View .block
border: no
height: 540
license: gpl-3.0