score:1

Square brackets allow the passing of variables.

d3.tsv(datapath, type, function(error, data) {
x.domain(data.map(function(d) { return d[columnname1]; }));
y.domain([0, d3.max(data, function(d) { return d[columnname2]; })]);

Related Query

More Query from same tag