flot/flot — pull request #854 by hyperair (2012-11-08 09:33:00+00:00)
Title: Add a ranges plugin to allow for drawing series of arbitrary rectangles or marker bars

USAGE:
This plugin accepts ranges in the form of pairs of points passed in as a
series.

$.plot ($("#placeholder"), [{data: [[[from_x1, from_y1], [to_x1, to_y1]],
[[from_x2, from_y2], [to_x2, to_y2]]],
ranges: {show: true}}],
options);

To enable this plugin for a series, just set ranges.show=true for the series
in question, as shown above. Other supported options inside series.ranges
are:
- fill: boolean (to fill the range or not tro fill the range)
- lineWidth: width of border or line
- opacity: Opacity of fill colour respective to series.color