0
두 개의 데이터 세트가있는 막대 그래프가 제공됩니다. 각 막대에 고유 한 색상을 어떻게 줄 수 있습니까?VueJS 동적 막대 차트 색상
svg.selectAll(".bar")
.data(data)
.enter().append("rect")
.style("fill", function(d,i) { console.log(i.fill) } // <- first red, second blue