How to access in code many chart layers using SubChartTool?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
pappa
Newbie
Newbie
Posts: 2
Joined: Mon Jun 25, 2007 12:00 am

How to access in code many chart layers using SubChartTool?

Post by pappa » Sat Sep 15, 2007 9:21 pm

What is the code to access multiple layers of charts using SubChartTool? I have 5 layers of donut charts each within each other built with the Chart Editor, and I need to rotate each donut separately. I can rotate the highest level donut, but haven't found the code to access the lower charts.
Thanks in advance for any help!

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

Post by Narcís » Mon Sep 17, 2007 9:01 am

Hi pappa,

You can acces SubChart's charts doing ChartTool1.Charts[ChartIndex].Chart. For example:

Code: Select all

  (ChartTool2.Charts[0].Chart.Tools.Items[0] as TColorLineTool).Value := ChartTool1.Value;
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