From 36df8f08c0c2cfed0c598db403111bc446499af6 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Mon, 4 Apr 2011 13:33:53 +0200 Subject: [PATCH] Fix problem with threshold plugin and bars (based on patch by kaarlenkaski, issue 348) --- NEWS.txt | 1 + jquery.flot.threshold.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS.txt b/NEWS.txt index 8e74d49..529a26f 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -6,6 +6,7 @@ Bug fixes - Fix problem with null values and pie plugin (patch by gcruxifix, issue 500). +- Fix problem with threshold plugin and bars (based on patch by kaarlenkaski) Flot 0.7 diff --git a/jquery.flot.threshold.js b/jquery.flot.threshold.js index 0b2e7ac..e180139 100644 --- a/jquery.flot.threshold.js +++ b/jquery.flot.threshold.js @@ -80,6 +80,8 @@ events. p.push(x); p.push(y); + for (m = 2; m < ps; ++m) + p.push(origpoints[i + m]); } datapoints.points = newpoints; @@ -98,6 +100,6 @@ events. init: init, options: options, name: 'threshold', - version: '1.0' + version: '1.1' }); })(jQuery);