Stacked Bar Chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Stacked Bar Chart

Post by lilo » Sun Jun 17, 2012 3:41 am

I need to plot a stacked bar chart with each row (point) containing a stack of 3 values stacked on top of one another.

I have made 4 bar chart series, each containing one set of data. I tried setting

Bar1.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked
Bar2.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked
Bar3.MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked
Bar1.StackGroup = 2
Bar2.StackGroup = 3

But this will only stack Bar2 and Bar3 on top of another, with Bar1 side by side. How do I stack all 3 Bar series on top of another?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Stacked Bar Chart

Post by Sandra » Mon Jun 18, 2012 12:06 pm

Hello lilo,

I suggest you take a look in Demo project, concretely in the All Features\Welcome !\Chart styles\Standard\Bar\Stack grouping where you can find a good example as you can use the StackGroup and Stack bars. On the other hand, if it doesn't help you please let me know.

Thanks,
Best Regards,
Sandra Pazos / 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