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);