Javascript jQuery/JS图-根据条件绘制不同颜色的线

Javascript jQuery/JS图-根据条件绘制不同颜色的线,javascript,jquery,html,css,graph,Javascript,Jquery,Html,Css,Graph,我需要一个线图库,它支持移动应用程序的多色(最可能是三种颜色) 例:y轴称为葡萄糖,范围为50-600,然后是x轴日期,范围为一个月(因此,范围始终为每天30点) 逻辑:从看X轴开始 1st and level of glucose is 70 2nd - 80 … … … 9th - 300 10th – 350 … … … 15th – 500 16th – 550 … … … 25th – 120 26th – 130 因此,我的图表应该绘制如下,取决于葡萄糖水平 50 – 150

我需要一个线图库,它支持移动应用程序的多色(最可能是三种颜色)

例:y轴称为葡萄糖,范围为50-600,然后是x轴日期,范围为一个月(因此,范围始终为每天30点)

逻辑:从

看X轴开始
1st and level of glucose is 70
2nd  - 80
…
…
…
9th  - 300
10th – 350
…
…
…
15th – 500
16th – 550
…
…
…
25th – 120
26th – 130
因此,我的图表应该绘制如下,取决于葡萄糖水平

50 – 150  - low – and line color should be green
151 – 300 – average – line color should be orange
Above 301 – high – line color should be red

我浏览了谷歌图表和jqPlot,但似乎很不幸,有人有过这方面的经验吗?

最后,我找到了很好的lib,解决了我的问题。叫

通过指定阈值和逻辑,我们可以得到不同的颜色相同的连续线。可以找到的例子很少