我在教自己D3没有太多关于javascript语法/语法的知识.任何人都可以在下面的函数文字中解释使用"d"作为参数吗?
我看到它指向正在处理的数据集,但想要理解这背后的语法.
d3.selectAll("circle")
.attr("cy",function (d) { return percent_scale(d.late_percent);})
.attr("cx",function (d) { return time_scale(d.time);})
.attr("r",1);
Run Code Online (Sandbox Code Playgroud)