把日期改成:
with DataModule1.adoquery_yxstjt do
begin
Close;
Sql.Clear;
Sql.Add('select day(xsrq) as rq,sumsje) as je ');
Prepared := True;
Open;
end;
dbchart1.SeriesList.Clear;
myseries:= TLineSeries.Create(self);
myseries.ParentChart:=dbchart1;
myseries.DataSource:=datamodule1.adoquery1;
myseries.XValues.ValueSource:='rq';
myseries.YValues.ValueSource:='je';
测试通过!