flot-orderbars
v1.0.0
Published
Fork of the Flot OrderBars plugin.
Downloads
2,595
Readme
flot-orderBars
This project is no longer actively maintained, but will remain here as a npm/bower-compatable source for the orderBars plugin.
Fork of the Flot OrderBars plugin found here: http://www.benjaminbuffet.com/public/js/jquery.flot.orderBars.js
Installation
Using bower :
bower install flot.orderbars --save
Improvements
Compatability with Flot Stack Plugin
The main improvement I've made 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.