Page 1 of 1

SubChart Tool Addition TChart

Posted: Mon Apr 13, 2009 5:10 am
by 13050300
Hi,

I am using WPF TChart (V. 3.5.3146.24806).

I have tried to add subchart tool inside TChart but not succeed.
I have also gone through the WPF Sample provided by TChart but not found any subcharts in sample also.

Can we add subchart tool in TChat? If yes, please provide me some sample code for adding subchart tool inside TChart.

Can we do intraction with subchart tool? for eg. selection of subchart, zooming/panning in subchart, adding different tools inside subchart etc. as we do in chart.

Thanks & Regards,
Mitesh Sureja

Posted: Tue Apr 14, 2009 8:40 am
by narcis
Hi Mitesh,
I have tried to add subchart tool inside TChart but not succeed.
I have also gone through the WPF Sample provided by TChart but not found any subcharts in sample also.
You'll find an example in the WPF demo searching for SubChartTool in the tools listbox. An example can also be found at What's New?\Welcome !\New Chart Tools\SubChart Tool in the features demo, available at TeeChart's program group.
Can we add subchart tool in TChat? If yes, please provide me some sample code for adding subchart tool inside TChart.
Yes, you can do this:

Code: Select all

			Steema.TeeChart.Tools.SubChartTool subChartTool1 = new Steema.TeeChart.Tools.SubChartTool(tChart1.Chart);
			Steema.TeeChart.TChart MyChart1 = subChartTool1.Charts.AddChart("Chart0");
Can we do intraction with subchart tool? for eg. selection of subchart, zooming/panning in subchart, adding different tools inside subchart etc. as we do in chart.
Yes, you can do the same as a standard chart.

SubChart Tool Addition TChart

Posted: Tue Apr 14, 2009 12:17 pm
by 13050300
Hi NarcĂ­s,

Thanks for reply.
You'll find an example in the WPF demo searching for SubChartTool in the tools listbox. An example can also be found at What's New?\Welcome !\New Chart Tools\SubChart Tool in the features demo, available at TeeChart's program group.
I have gone throught WPF Demo sample, I found subcharttool in listbox but I don't found any subchart added in Chart.

I have tried your code to add subchart but still not succeed.
I have uploaded simple example named SubChartSample.zip using upload page link.

Please help me to add subcharts.

Thanks and regards,
Mitesh Sureja

Posted: Tue Apr 14, 2009 1:29 pm
by narcis
Hi Mitesh,

It seems SubCharTool is not working fine in WPF. I've added the defect (TW16014083) to the bug list to be fixed for next releases.