用ChangeSeriesType,定义如下
procedure ChangeSeriesType(Var ASeries:TChartSeries;NewType:TChartSeriesClass);
***************************************************************************
var
tmp :TChartSeries;
i :integer;
begin
if DBChart.SeriesCount<=0 then
exit;
for i:=0 to DBChart.SeriesCount-1do
begin
tmp := DBChart.Series;
ChangeSeriesType(tmp,TChartSeriesClass(TBarSeries));//类型转换,可以在这里指定类型TPieSeries等
tmp.ColorEachPoint :=false;
tmp.Active :=true;
end;
end;
看不明白再问。