Page 1 of 1

Multibars and Stack Group

Posted: Tue Jun 20, 2006 3:14 pm
by 8123522
I am trying to get to bars side by side both of which are stacked on a webchart. I have:-

bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
bar2.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;


bar3.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
bar4.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;


This is given me 1 bar of four, how do I specify the gorup to get 2 bars?

Posted: Wed Jun 21, 2006 8:50 am
by narcis
Hi MikeTheLad,

You should try using StackGroup property:

Code: Select all

    bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
    bar1.StackGroup = 1;
    bar2.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;    
    bar2.StackGroup = 1;

    bar3.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
    bar3.StackGroup = 2;
    bar4.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;    
    bar4.StackGroup = 2;