Changing the colors of each of the Stacked Bar chart with different Color in D3
问题 This involved the assignment of different colors to each bars of the stacked bar charts as currently there is only single color in all the four bars and colors are changing in the stacked one but I am trying to assign different colors to all the four bars as well the stacked value. Here is the code var margin = { top: 20, right: 160, bottom: 35, left: 30 }; var width = 960 - margin.left - margin.right, height = 600 - margin.top - margin.bottom; var svg = d3.select("body") .append("svg") .attr