selectAll to select the circles then .style to change their fill and .attr to ... d3.selectAll('circle') .attr('cx', function(d, i) { return i * 100; });.
確定! 回上一頁