Plotting Multiple barcharts using Flot API [closed]
Asked Answered
A

1

3

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

Anaphylaxis answered 18/1, 2014 at 20:29 Comment(0)
M
6

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.

Maurizia answered 19/1, 2014 at 6:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.