attr method, then D3 will call that function with two arguments. The first argument is the data value and the second is the index of that data value (e.g. 0 if ...
確定! 回上一頁