changing a series type in run time.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SDG
Newbie
Newbie
Posts: 40
Joined: Tue Apr 08, 2003 4:00 am

changing a series type in run time.

Post by SDG » Fri Dec 05, 2003 5:55 am

How to change a series type in the runtime.
I have created line series in the design time, I want to change it to Bar series or Area series or pieseries or pointseries during runtime. Just the way it is done th Tchartoffice demo.
Similarly how can I change the function type in runtime.
I don't want to create multiple series, but need to change the existing series.
What is the solution.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Dec 05, 2003 10:13 am

You can change the Series type in similar manner to the following (this will change to TBarSeries) :

Code: Select all

var tmp: TChartSeries; 
begin 
  tmp := Chart1.Series[0]; 
  ChangeSeriesType(tmp,TBarSeries); 
end;
Josep Lluis Jorge
http://support.steema.com

Post Reply