Page 1 of 1

How to access in code many chart layers using SubChartTool?

Posted: Sat Sep 15, 2007 9:21 pm
by 10545685
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!

Posted: Mon Sep 17, 2007 9:01 am
by narcis
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;