User Tools

Site Tools


dvd3js:using_external_data

Using external data

//data.tsv
name number
José 10
Childéric 65
Bernardo 23
Mireille 78
Rambo 80
var bardata = [];

d3.tsv('data.tsv', function (data) {
  for (key in data) {
    bardata.push({
      name:data[key].nom,
      nombre:data[key].nombre,
    });
  }
});
dvd3js/using_external_data.txt · Last modified: 2016/04/14 19:35 by leo