score:1

Accepted answer

You need to provide the accessor functions for the data (because it is not keyed with 'x' and 'y').

var stack = d3.layout.stack().x(function(d,i){return i;}).y(function(d){return d.value;});

https://jsfiddle.net/ermineia/rhzkz9gb/14/


Related Query

More Query from same tag