score:2

Accepted answer

You could always sidestep the native d3 stack layout helper functions and compute the rect positions yourself from the data - here is a basic example of a stacked bar with data similar to yours: http://jsfiddle.net/tyR2S/7/

You still need to do a little transforming of data, so it might still be worthwhile to try transforming to the layer inputs that d3.stack takes, but I present this in case it might be helpful.

stacked bar example without stack layout


Related Query

More Query from same tag