app.js created

master
Matt Huntington 9 years ago
parent a5c2dd2115
commit 603108efe6

@ -0,0 +1,19 @@
var WIDTH = 800;
var HEIGHT = 500;
d3.select('svg')
.attr('width', WIDTH)
.attr('height', HEIGHT);
d3.json('/runs', function(error, data){
d3.select('svg').selectAll('circle')
.data(data)
.enter()
.append('circle')
.attr('r', 5)
.attr('cx', function(datum, index){
console.log(datum);
//console.log(index);
return index*100;
});
});
Loading…
Cancel
Save