Skip to content

Instantly share code, notes, and snippets.

@Jaapze
Jaapze / source.js
Last active Feb 26, 2016 — forked from bjorngi/source.js
Moving xAxis along with line
View source.js
(function() {
var n = 243,
duration = 750,
now = new Date(Date.now() - duration),
count = 0,
data = d3.range(n).map(function() { return 0; });
var margin = {top: 6, right: 0, bottom: 20, left: 40},
width = 960 - margin.right,