Problem with stacked area charts
Posted: 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:
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
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);
}
Kind Regards