Page 1 of 1

Problem with stacked area charts

Posted: Thu Sep 12, 2013 7:21 am
by 15664347
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

Re: Problem with stacked area charts

Posted: Thu Sep 12, 2013 1:43 pm
by narcis
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
StackedAreaVCL.jpg (42.58 KiB) Viewed 4262 times
Is this the way you'd expect the chart to be rendered?

Thanks in advance.