Acessing Chart1.Series properties and methods for Bar3D

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Acessing Chart1.Series properties and methods for Bar3D

Post by SteveP » Mon May 09, 2005 9:21 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 10, 2005 8:23 am

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(...)
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply