let color = d3.scale.category10(); svg.selectAll('.bar').attr({ 'fill': (d, i) => color(i), });. v5 var color = d3.scaleOrdinal(d3.
確定! 回上一頁