I have a codepen here - https://codepen.io/anon/pen/ddPMVx?editors=1010
It's a simple stacked bar chart
Each stack from the data is in its own layer with a class of 'layer'
I'd like to added another class that is the name of the key from the keys that create the stack
.classed('layer', true)
// .classed((i)=>{
// return keys[i],
// }, true)