You can't get smooth transitions, but you can get abrupt ones using the thresholding plugin.
jQuery Flot: change line color at threshold / coordinate
-
29-03-2022 - |
Question
I'm wondering if it's possible in Flot to change a line's colour when it goes above/below a threshold. A smooth transition / gradient would be preferable, but if it has to be abrupt, I think I could live with that.
Here's a quick-n-dirty example of how I'd like the graph to look:
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow