D3.js如何生成一个可变宽度的堆叠图(Marimekko图表) [英] D3.js how can I generate a variable width stacked chart (Marimekko chart)

查看:651
本文介绍了D3.js如何生成一个可变宽度的堆叠图(Marimekko图表)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想生成一个堆叠条形图(类似于 http://bl.ocks.org/ mbostock / 1134768 ),其中每个条的总高度相同,宽度变化。这种图表也被称为Marimekko图表。



到目前为止,我试图使宽度根据csv文件中的值变化失败。

ocks.org/mbostock/1005090rel =nofollow> http://bl.ocks.org/mbostock/1005090 是我要找的。

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图表)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆