TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
OMP
- Newbie
- Posts: 21
- Joined: Mon Dec 10, 2012 12:00 am
Post
by OMP » Thu Sep 12, 2013 7:21 am
Dear,
I have 2 area charts that are stacked and 1 of these charts has both positive and negative numbers and the other chart only has positive numbers. In this case some strange behaviour occurs (see image).
The code that I use is the following:
Code: Select all
Steema.TeeChart.Styles.Area area = new Steema.TeeChart.Styles.Area(tChart1.Chart);
Steema.TeeChart.Styles.Area area2 = new Steema.TeeChart.Styles.Area(tChart1.Chart);
area.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked;
area2.MultiArea = Steema.TeeChart.Styles.MultiAreas.Stacked;
for (int i = -5; i < 10; i+=2)
{
area.Add(i);
}
for (int i = 10; i > -5; i-=2)
{
area2.Add(i);
}
Is it possible to avoid this kind of behaviour and make sure that for instance there are no white spaces between the orange chart and the blue one (between x values 2 and 3)?
Kind Regards
-
Attachments
-
- area chart.PNG (22.83 KiB) Viewed 4273 times
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Thu Sep 12, 2013 1:43 pm
Hello OMP,
I could reproduce the problem here and added it to the bug list (TF02016717) to be fixed for future releases. I have also checked the VCL version doesn't reproduce this problem:
- StackedAreaVCL.jpg (42.58 KiB) Viewed 4259 times
Is this the way you'd expect the chart to be rendered?
Thanks in advance.