Fork of the Flot OrderBars plugin found here: http://www.benjaminbuffet.com/public/js/jquery.flot.orderBars.js
I made this plugin compatible with the Flot Categories plugin, and I fixed a bug when finding min and max axis values.
Note that the jquery.flot.categories.js must be included before jquery.flot.orderBars.js.
I also added a minified version of the plugin.
The main improvement previously made by Steven Hall (emmerich) is compatability with the Flot Stack plugin.
To use the 2 together:
- Ensure that your data is well formed. Each series should contain a bars object with an order integer, like so:
var series = [];
series.push({
data: [], // your raw data
bars: {
order: 0
}
});
series.push({
data: [], // your raw data
bars: {
order: 1
}
});
- Ensure that the order bars plugin is loaded before the stack plugin.
See the example for more information.