From c3a34cd6e9390e581106613d290320a0d2ea1b52 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Mon, 7 Dec 2009 15:24:55 +0000 Subject: [PATCH] Support for specifying a bottom for each point for line charts when filling them, this means that an arbitrary bottom can be used instead of just the x axis (based on patches patiently provided by Roman V. Prikhodchenko). New fillbetween plugin that can compute a bottom for a series from another series, useful for filling areas between lines (see new example percentiles.html for a use case). More predictable handling of gaps for the stacking plugin, now all undefined ranges are skipped. Fixed problem with plugins adding options to the series objects. Fixed a problem introduced in 0.6 with specifying a gradient with { brightness: x, opacity: y }. git-svn-id: https://flot.googlecode.com/svn/trunk@229 1e0a6537-2640-0410-bfb7-f154510ff394 --- API.txt | 7 +- NEWS.txt | 16 +++- examples/index.html | 3 +- examples/percentiles.html | 57 ++++++++++++ examples/stacking.html | 2 +- jquery.flot.fillbetween.js | 183 +++++++++++++++++++++++++++++++++++++ jquery.flot.js | 101 ++++++++++---------- jquery.flot.stack.js | 62 +++++++++---- 8 files changed, 362 insertions(+), 69 deletions(-) create mode 100644 examples/percentiles.html create mode 100644 jquery.flot.fillbetween.js diff --git a/API.txt b/API.txt index bd0c663..a99dd1a 100644 --- a/API.txt +++ b/API.txt @@ -52,8 +52,9 @@ drawing. As a special case, a null value for lines is interpreted as a line segment end, i.e. the points before and after the null value are not connected. -Lines and points take two coordinates. For bars, you can specify a -third coordinate which is the bottom of the bar (defaults to 0). +Lines and points take two coordinates. For filled lines and bars, you +can specify a third coordinate which is the bottom of the filled +area/bar (defaults to 0). The format of a single series object is as follows: @@ -479,7 +480,7 @@ The most important options are "lines", "points" and "bars" that specify whether and how lines, points and bars should be shown for each data series. In case you don't specify anything at all, Flot will default to showing lines (you can turn this off with -lines: { show: false}). You can specify the various types +lines: { show: false }). You can specify the various types independently of each other, and Flot will happily draw each of them in turn (this is probably only useful for lines and points), e.g. diff --git a/NEWS.txt b/NEWS.txt index b02aa41..6ef6d54 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -1,6 +1,18 @@ Flot x.x -------- +Changes: + +- Support for specifying a bottom for each point for line charts when + filling them, this means that an arbitrary bottom can be used + instead of just the x axis (based on patches patiently provided by + Roman V. Prikhodchenko). +- New fillbetween plugin that can compute a bottom for a series from + another series, useful for filling areas between lines (see new + example percentiles.html for a use case). +- More predictable handling of gaps for the stacking plugin, now all + undefined ranges are skipped. + Bug fixes: @@ -8,7 +20,9 @@ Bug fixes: (reported by ragingchikn, issue 242). - Fixed problem with ticks and the border (based on patch from ultimatehustler69, issue 236). - +- Fixed problem with plugins adding options to the series objects. +- Fixed a problem introduced in 0.6 with specifying a gradient with { + brightness: x, opacity: y }. Flot 0.6 -------- diff --git a/examples/index.html b/examples/index.html index e549226..e9074c3 100644 --- a/examples/index.html +++ b/examples/index.html @@ -29,13 +29,14 @@
  • Panning and zooming (with navigation plugin)
  • -

    Some more esoteric features:

    +

    Various features: