var data = [1, 2, 3]; d3.selectAll("rect") .style('fill', function(d) { if(d >= 2) { return 'red'; } else { return 'green'; } });.
確定! 回上一頁