w / jqplot是否可以显示“覆盖”条形图的折线图?
我已将一个系列添加到堆叠条形图并将渲染器更改为$ .jqplot.LineRender . 这显示为一条线,但它会被添加到堆叠的金额中 .
是的,可以使用 jqPlot 完成 .
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.
我在jsFiddle上添加this example,我希望这对你有用 . 它还显示了绘制分界线和区域以获得更好表示的可能性 .
在此页面上有一篇关于此主题的文章:http://www.meccanismocomplesso.org/en/mean-mode-median-barchart/
.
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 } } ]
它将绘制线条和条形图
3 回答
是的,可以使用
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.
我在jsFiddle上添加this example,我希望这对你有用 . 它还显示了绘制分界线和区域以获得更好表示的可能性 .
在此页面上有一篇关于此主题的文章:http://www.meccanismocomplesso.org/en/mean-mode-median-barchart/
它将绘制线条和条形图