简体   繁体   English

Flot Chart Columns多个数据系列

[英]Flot Chart Columns multiple data series

I am trying to leverage the jQuery Flot charting package to plot a data series and I want it to look something like this: 我正在尝试利用jQuery Flot图表包来绘制数据系列,我希望它看起来像这样:

在此处输入图片说明

I've tried different Flot plugins like the side bar plugin but it's not exactly what I'm looking for. 我尝试了不同的Flot插件(如侧栏插件),但这并不是我想要的。 The standard Flot library allows me to plot a bar chart like so: 标准的Flot库允许我绘制如下的条形图:

在此处输入图片说明

 var dataEarnings = [ {label: 'actual', data: [[1,300], [2,310], [3,440], [4,300]]}, {label: 'estimate', data: [[1,200], [2,300], [3,400], [4,200]]}, ]; var optionsEarnings = { series: { lines: {show: false, steps: false }, bars: { show: true, barWidth: 0.9, align: 'center', horizontal: false }, points: { show: true, radius: 3, symbol: 'circle' } }, yaxis: { show: true, tickLength: 0 }, xaxis: {ticks: [[1,'Q1'], [2,'Q2'], [3,'Q3'], [4,'Q4']]} }; $.plot($("#chart-earnings"), dataEarnings, optionsEarnings); 

Any suggestions or pointers to other Flot plugins are greatly appreciated! 任何建议或指向其他Flot插件的指针将不胜感激!

我找到了我在这里寻找的Flot“气泡”插件...

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

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