Page 1 of 1

Acessing Chart1.Series properties and methods for Bar3D

Posted: Mon May 09, 2005 9:21 pm
by 9333098
After creating several bar3D series at run time, can their popoerties such as CustomBarWidth and MultiBar and methods such as AddBar be accessed using

for index := 0 to Chart1.SeriesCount-1 do Chart1.Series[index].

These properties and methods are not available this way.

Posted: Tue May 10, 2005 8:23 am
by narcis
Hi Steve,

To access specific series types methods you have to type cast series doing:

Code: Select all

for i := 0 to Chart1.SeriesCount-1 do (Chart1.Series[index] as TBar3DSeries).AddBar(...)