From cf9b23b0a478df01cc1e53aac1bc28eb310251a9 Mon Sep 17 00:00:00 2001 From: Eric Puidokas Date: Mon, 18 Feb 2013 16:30:15 -0500 Subject: [PATCH] Added threshold example --- exampleThreshold.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 exampleThreshold.js diff --git a/exampleThreshold.js b/exampleThreshold.js new file mode 100644 index 0000000..c889607 --- /dev/null +++ b/exampleThreshold.js @@ -0,0 +1,19 @@ +$(function () { + + //
+ + + var d1 = [[20,20], [42,60], [54, 20], [80,80]]; + + var options = { series: { + curvedLines: { + active: true + }, + threshold: { below: 40, color: "rgb(0, 0, 0)" } + }, + axis: { min:10, max: 100}, + yaxis: { min:10, max: 90} + }; + + $.plot($("#flotOrig"), [{data: d1, lines: { show: true, lineWidth: 3}, curvedLines: {apply:true}}, {data: d1, points: { show: true }}], options); +}); \ No newline at end of file