Plotting Multiple barcharts using Flot API [closed

2019-02-15 07:08发布

hi i am using FLOT charts API to show data in the form of bar charts in my application. I have got requirement to show the data in bar chart and in categories with Pre Data and Post data some thing as shown in the picture like this

Sample Diagram

Sample Chart to plot

Please tell me how to take the data to plot the bar chart

1条回答
来,给爷笑一个
2楼-- · 2019-02-15 07:28

You need a plugin for this.

Check OrderBars and then use data like:

var series = [];

series.push({
    data: [], // your raw data
    bars: {
        order: 0
    }
});

series.push({
    data: [], // your raw data
    bars: {
        order: 1
    }
});

Example: http://jsfiddle.net/ZRXP5/
My example uses Mootools, but you find the jQuery version (.js file) in the link above.

查看更多
登录 后发表回答