Page 1 of 1

about TeeChart.EToolClass.tcDataTable

Posted: Mon Oct 22, 2007 8:17 am
by 9529779
how can i set the legend of the TeeChart.EToolClass.tcDataTable?
i can't find any method to set this property.

Posted: Mon Oct 22, 2007 2:01 pm
by narcis
Hi w6p2,

You can do something like this:

Code: Select all

    TChart1.Tools.Items(0).asDataTable.Legend.Show

Posted: Tue Oct 23, 2007 7:58 am
by 9529779
can't find 'Show' method

my code is
trend.Tools.Add(TeeChart.EToolClass.tcDataTable)
trend.Tools.Items(0).asDataTable.Legend.Show()

the asDataTable is TeeChart.IDataTableTool, not EToolClass.tcDataTable.
maybe i haven't expain my question clearly, sorry.

Posted: Wed Oct 31, 2007 12:04 pm
by narcis
Hi w6p2,

Ok, in that case you need to do this:

Code: Select all

			axTChart1.Tools.Add(TeeChart.EToolClass.tcDataTable);
			axTChart1.Tools.get_Items(0).asDataTable.Legend.Show();