Open TonyGoodDay2 opened 7 years ago
the data associated with a given selection
It allows you to pass in a function as the second parameter. As you discovered, this function will be called with the current data element as well as the index of the current data element. If the second parameter is not a function, it can use a value instead. d3.selectAll("circle") .attr("cy",function (d) { return percent_scale(d.late_percent);})
example:
function (d)