Skip to content

Commit 36df8f0

Browse files
committed
Fix problem with threshold plugin and bars (based on patch by kaarlenkaski, issue 348)
1 parent 2d2ca32 commit 36df8f0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Bug fixes
66

77
- Fix problem with null values and pie plugin (patch by gcruxifix,
88
issue 500).
9+
- Fix problem with threshold plugin and bars (based on patch by kaarlenkaski)
910

1011

1112
Flot 0.7

jquery.flot.threshold.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ events.
8080

8181
p.push(x);
8282
p.push(y);
83+
for (m = 2; m < ps; ++m)
84+
p.push(origpoints[i + m]);
8385
}
8486

8587
datapoints.points = newpoints;
@@ -98,6 +100,6 @@ events.
98100
init: init,
99101
options: options,
100102
name: 'threshold',
101-
version: '1.0'
103+
version: '1.1'
102104
});
103105
})(jQuery);

0 commit comments

Comments
 (0)