组合线和条带w / jqplot

时间:2012-05-23 20:24:31

标签: jqplot

w / jqplot是否可以显示“覆盖”条形图的折线图?

我在叠加的条形图中添加了一个系列,并将渲染器更改为$ .jqplot.LineRender。这显示为一行,但它会被添加到堆积金额中。

3 个答案:

答案 0 :(得分:18)

是的,可以使用jqPlot完成。

示例显示如何在单个地块上显示条形图以及折线图is presented here, see the 3rd plot from the top

Here I made a sample to show line and stacked bar charts on a single plot.

答案 1 :(得分:4)

我在jsFiddle上添加this example,我希望这对你有用。它还显示了绘制分界线和区域以获得更好表示的可能性。

enter image description here

此页面上有一篇关于此主题的文章:http://www.meccanismocomplesso.org/en/mean-mode-median-barchart/

.

答案 2 :(得分:0)

 series:[
              {
                    color:'#0070c0',
                    label : 'Barchart',
                    renderer:$.jqplot.BarRenderer,
                    rendererOptions: {
                          barPadding: 0,
                          barMargin: 0
                    },
                    pointLabels: { show: true }
              },
       {
                    yaxis: 'y2axis',
                    color: '#ff0000',
                    label : 'Line chart ',
                    renderer:$.jqplot.LineRenderer,
                    rendererOptions: {
                          barPadding: 0,
                          barMargin: 0
                    }
              }
        ]

它将绘制线条和条形图

相关问题