Page 1 of 1

what is the property to know series type?

Posted: Sat Jan 17, 2004 6:32 am
by 8440512
I have created a new series in run time using chart gallery.
I want to know the series type i.e Line/bar/point series/... that I have created using gallery to save the type and create the same type of series later.
what property should I use?

Posted: Sat Jan 17, 2004 1:18 pm
by Marjan
Hi.

Perhaps you could use TChartSeries.ClassName property. Something like this:

Code: Select all

Chart1.FreeAllSeries();
Chart1.AddSeries(TBarSeries);
// returns TBarSeries
ShowMessage(Chart1.Series[0].ClassName); 
Or you can also use ClassType property (depending what exactly you want to do with retrieved information.