I want to create more child chart, please look at the code:
Steema.TeeChart.WPF.TChart child = new Steema.TeeChart.WPF.TChart();
child.Chart.ChartRect.Location = new Point(100, 50); // invalid
child.Chart.ChartRect.X = 100; // invalid
child.Chart.ChartRect.Y = 50; // invalid
child.Width = 500; // valid
child.Height = 250; // valid
tChart1.Children.Add(child);
Child charts will overlap, why child chart' ChartRect.Location cannot be set? It's always Point(0,0).
this is a BUG?
I'm working environment is: VS2010(.NET Framework 4.0) / Windows7
child chart Location cannot be set for TeeChart.WPF
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: child chart Location cannot be set for TeeChart.WPF
Hi Candy,
You are not using the right properties, I'm afraid. Try using Margin instead:
You are not using the right properties, I'm afraid. Try using Margin instead:
Code: Select all
Steema.TeeChart.WPF.TChart child = new Steema.TeeChart.WPF.TChart();
child.Margin = new Thickness(100, 50, 0, 0);
child.Width = 500; // valid
child.Height = 250; // valid
tChart1.Children.Add(child);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |