问题
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:
The Marimekko chart at http://bl.ocks.org/mbostock/1005090 is what I was looking for.
来源:https://stackoverflow.com/questions/21610828/d3-js-how-can-i-generate-a-variable-width-stacked-chart-marimekko-chart