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

穿精又带淫゛_ 提交于 2020-01-11 11:02:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!