简体   繁体   English

我可以使用Google图表工具创建重叠的条形图吗?

[英]Can I create overlapping bar charts using Google Chart Tools?

I'm using Google Chart Tools to create charts for some of my data. 我正在使用Google图表工具为我的一些数据创建图表。 I'm pretty much confined to the examples I can find in the Charts Gallery , and I can't find an example of an overlapping bar chart like this (mspaint): 我只限于可以在Charts Gallery中找到的示例,而找不到这样的重叠条形图的示例(mspaint):

图表示例

Is it possible to create a chart like this with Google Chart Tools? 是否可以使用Google图表工具创建这样的图表?

This is called "stacked bar chart" in Google Chart Tools. 这在Google图表工具中称为“堆积条形图”。 To create one you simply make a BarChart with multiple values per row and set the isStacked option to true . 要创建一个,只需制作一个每行具有多个值的BarChart ,然后将isStacked选项设置为true Example result: 结果示例:

图表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM