crankshaft
crankshaft

Reputation: 2677

flot - plot color change if exceeds value

Is it possible to change the color of a plotted line if that value exceeds a threshold ?

For example, if I have a maximum temperature of say 20 degrees, and any plotted value is higher than this, can the plot point and line's color be change to for example red ?

Upvotes: 0

Views: 545

Answers (1)

Raidri
Raidri

Reputation: 17550

Have a look at the Threshold plugin: http://www.flotcharts.org/flot/examples/threshold/index.html

Upvotes: 2

Related Questions