Skip to content

zeitschlag/flot-orderBars

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

flot-orderBars

Fork of the Flot OrderBars plugin found here: http://www.benjaminbuffet.com/public/js/jquery.flot.orderBars.js

Improvements

Compatability with IE8

IE8 doesn't support Array.indexOf(). So I changed emmerichs Array.indexOf to jQuery.inArray().

Compatability with Flot Stack Plugin (made by emmerich)

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.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%