N:=20;
SAT:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);STICKLINE(C>0 AND ISLASTBAR,20,120,3,0),COLORFFFFFF;STICKLINE(SAT<=5 AND ISLASTBAR,21,20+SAT,3,0),COLORFFFFFF;STICKLINE(SAT>5 AND SAT<=20 AND ISLASTBAR,21,20+SAT,5,0),COLORFFff34;STICKLINE(SAT>20 AND SAT<=40 AND ISLASTBAR,21,20+SAT,5,0),COLORFF00FF;STICKLINE(SAT>40 AND ISLASTBAR,21,20+SAT,6,0),COLOR0000ff;DRAWTEXT(ISLASTBAR AND SAT,SAT*1.3+2,'度'),colorwhite;DRAWTEXT(ISLASTBAR AND SAT,SAT*1.3+13,'和'),colorwhite;DRAWTEXT(ISLASTBAR AND SAT,SAT*1.3+27,'饱'),colorwhite;DRAWTEXT(ISLASTBAR AND SAT,SAT*1.3+41,'能'),colorwhite;DRAWTEXT(ISLASTBAR AND SAT,SAT*1.3+55,'量'),colorwhite;DRAWNUMBER(ISLASTBAR AND SAT,SAT,SAT),colorwhite;SAT,LINETHICK2,coloryellow;