I\'m trying to update the data selection for stacked bars appended as below:
.data(series) .join(\'g\') .attr("fill", d => color(d.key))