我的代码:
  DBChart1.Title.Text.Clear;
  DBChart1.Title.Text.Add('曲线图');
  DBChart1.Title.Font.Size:=10;
  DBChart1.Title.Font.Color:=clBlack;
  strsql:=' select yhmonth,SFBQ from yh_usedata where yhyear='+Trim(edtYear.Text)+
          ' and yhmonth>='+Trim(edtMonthFrom.Text)+' and yhmonth<='+Trim(edtMonthTo.Text)+
          ' and yhcode='''+Trim(edtYhCode.Text)+'''';
  Quy1.Close;
  Quy1.Connection:=FrmQCDM.ADOCon;
  Quy1.SQL.Clear;
  Quy1.SQL.Text:=strsql;
  Quy1.Open;
  DBChart1.Series[0].DataSource:=ds1;
但是如何设置X,Y轴?
我网上查了一下,都说是:
DBCHART1.YValues.ValueSource:='fieldname';
但是YValues下面根本就没有ValueSource这个属性