如何使用Jqplot在同一堆叠的条形图中显示两组不同颜色的条形图 [英] How to use Jqplot to show two groups of differently colored bars in the same stacked bar chart
问题描述
我想制作一个带有两组堆叠的条形图的条形图,将它们组合在一起以比较两组堆叠的条形图.应该以以下方式显示:
I want to make a bar chart with two sets of stacked bars which are grouped together to compare the two groups of stacked bars. This should be displayed in the following manner:
我已经通过此链接
但是,这并没有帮助我绘制出如上图所示的图像.我什至尝试发送两个数据集,例如[[s1, s2, s3], [s4, s5, s6]]
,但这并没有帮助我绘制图表.
有人知道怎么做吗?
But it didn't help me plot something like you see in the above image. I even tried sending two data sets like [[s1, s2, s3], [s4, s5, s6]]
But it didn't help me plot the chart.
Does anyone know how to do it?
任何帮助将不胜感激. 预先感谢.
Any help will be greatly appreciated. Thanks in advance.
推荐答案
设置选项stackSeries: true
将为条形图创建所需的显示.
Setting the option stackSeries: true
will create the desired display for bar charts.
这篇关于如何使用Jqplot在同一堆叠的条形图中显示两组不同颜色的条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!