D3.js how can I generate a variable width stacked chart (Marimekko chart)

2k Views Asked by At

I would like to generate a stacked bar chart (similar to http://bl.ocks.org/mbostock/1134768) where the total height of each bar is the same and the width varies. This kind of chart is also known as Marimekko chart.

So far my attempts to make the width vary based on a value in the csv file have failed. Any suggestions would be appreciated.

1

There are 1 best solutions below

1
On BEST ANSWER

The Marimekko chart at http://bl.ocks.org/mbostock/1005090 is what I was looking for.