문제

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:

enter image description here

도움이 되었습니까?

해결책

You can't get smooth transitions, but you can get abrupt ones using the thresholding plugin.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top