chart1 : TfrxChartView;
seriesRec: Array of TLineSeries;
chart1.ClearSeries;
SetLength(seriesRec,MySQLTable1.FieldDefList.Count - 1);
for i:=1 to MySQLTable1.FieldDefList.Count-1 do
begin
seriesRec[i-1]:=TLineSeries.Create(chart1);
chart1.Chart.View3D:=false;
chart1.DataSet:=frxDBDataset1;
chart1.Chart.AddSeries(seriesRec[i-1]);
//[0].DataSource:=MySQLTable1;
//sss.
chart1.Chart.Series[0].DataSource:=frxDBDataset1;
// seriesRec[i-1].Clear;
seriesRec[i-1].Active:=true;
seriesRec[i-1].DataSource:=frxDBDataset1;
数据集总是不认啊,说是无效的 数据集