d3 can use a function to calculate attribute values instead of using hard coded values. ... .text( function (d) { return d.name }); ...
確定! 回上一頁