user416
user416

Reputation: 536

How to draw a flot chart with threshold limit?

I would like to draw a flot chart with threshold values like below.Any suggestions pls how to draw yellow and red values] description here

Upvotes: 0

Views: 465

Answers (1)

Blake
Blake

Reputation: 1077

I've used the flot dashes plugin in the past to create something similar - Flot Dashes. You will also have to specify the options for each line, have a look at this Example.

var dataSet = [{

data: [[1,8],[2,8],[3,8],[4,8]],
dashes: {show: true} 

},
{
data: [[1,7],[2,5],[3,6],[4,6]],

points: {show:true},
lines: {show:true}
},

{
data: [[1,4],[2,4],[3,4],[4,4]],
dashes: {show: true} 
}]

Upvotes: 2

Related Questions