Javascript 在jqplot中显示组图
如何在jqplot中显示刻度条的总和。我想把每个月的值显示为该条顶部的总和,如下图所示 起动小提琴手Javascript 在jqplot中显示组图,javascript,jquery,graph,jqplot,Javascript,Jquery,Graph,Jqplot,如何在jqplot中显示刻度条的总和。我想把每个月的值显示为该条顶部的总和,如下图所示 起动小提琴手 请提供任何帮助。我不明白你想做什么,让总用户使用: var total = [s1[0] + s2[0] + s3[0], s1[1] + s2[1] + s3[1], s1[2] + s2[2] + s3[2], s1[3] + s2[3] + s3[3]]; var plot1 = $.jqplot('chart1', [s1, s2, s3, total], {.. 实施: 好的,
请提供任何帮助。我不明白你想做什么,让总用户使用:
var total = [s1[0] + s2[0] + s3[0], s1[1] + s2[1] + s3[1], s1[2] + s2[2] + s3[2], s1[3] + s2[3] + s3[3]];
var plot1 = $.jqplot('chart1', [s1, s2, s3, total], {..
实施:
好的,明白了,这是最新的答案:
蓝色条必须是该勾号下的系列的总和。您可以像在图像中一样,在各个勾号的全宽中显示该总绿色,再显示一个。有没有办法在这个系列的顶部加上蓝条,真的很酷。顺便说一句,我注意到,现在酒吧是对的权利。左边还有空间。我知道这是因为新的系列。我们有没有办法把它移向左边,在滴答声的中心画出子条。这将解决这个问题。这是最后一次重播:或者
var total = [s1[0] + s2[0] + s3[0], s1[1] + s2[1] + s3[1], s1[2] + s2[2] + s3[2], s1[3] + s2[3] + s3[3]];
var plot1 = $.jqplot('chart1', [s1, s2, s3, total], {..
series:[
{
label:'Total',
color: 'blue' ,
renderer: $.jqplot.BarRenderer,
rendererOptions: {
barWidth:80,
shadowAlpha: 0,
barPadding: -86,
}
},
{label:'Hotel'},
{label:'Event Registration'},
{label:'Airfare'}
]