if (adoq.FieldByName('gd').AsFloat>=min_gd) and (adoq.FieldByName('gd').AsFloat<=max_gd) then begin chart1.Series[0].SeriesColor:=clgreen; end else chart1.Series[0].SeriesColor:=clred; // if (adoq.FieldByName('gd').AsFloat>=min_gd) and (adoq.FieldByName('gd').AsFloat<=max_gd) then // begin chart1.Series[0].AddXY(i,adoq.FieldByName('gd').AsFloat);