You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
359 B

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;
});
});