Multibars and Stack Group

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MikeTheLad
Newbie
Newbie
Posts: 65
Joined: Mon Jan 19, 2004 5:00 am

Multibars and Stack Group

Post by MikeTheLad » Tue Jun 20, 2006 3:14 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 21, 2006 8:50 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply