本文介绍了D3.js如何生成一个可变宽度的堆叠图(Marimekko图表)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想生成一个堆叠条形图(类似于),其中每个条的总高度相同,宽度变化。这种图表也被称为Marimekko图表。
到目前为止,我试图使宽度根据csv文件中的值变化失败。
ocks.org/mbostock/1005090rel =nofollow> http://bl.ocks.org/mbostock/1005090 是我要找的。 p>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.
解决方案
The Marimekko chart at http://bl.ocks.org/mbostock/1005090 is what I was looking for.
这篇关于D3.js如何生成一个可变宽度的堆叠图(Marimekko图表)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!