如何绘制有阈值限制的图表?

How to draw a flot chart with threshold limit?

我想用below.Any这样的阈值画一个flot图表请建议

我过去曾使用 flot dashes 插件来创建类似的东西 - 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} 
}]