Multiple stacked bar series

2 posts, 0 answers
  1. Robbie
    Robbie avatar
    1 posts
    Member since:
    Apr 2013

    Posted 27 Mar 2014 Link to this post

    Is it possible to create a chart like the attached image? 

    The chart i am trying to create currently has a stacked bar for enquiries and orders for each month of  a year, i want to add another year to this chart to compare so would need another stacked bar for each month in the new year.

  2. Dimitar
    Dimitar avatar
    1871 posts

    Posted 01 Apr 2014 Link to this post

    Hi Robbie,

    Thank you for writing.

    To achieve the desired layout first you should set the series CombineMode property to Stack. Then you can use the StackGroupKey property to control how the series are stacked. For example when you have four series you can combine them like this:
    barSeries.CombineMode = ChartSeriesCombineMode.Stack;
    barSeries2.CombineMode = ChartSeriesCombineMode.Stack;
    barSeries3.CombineMode = ChartSeriesCombineMode.Stack;
    barSeries4.CombineMode = ChartSeriesCombineMode.Stack;
    barSeries.StackGroupKey = 0;
    barSeries2.StackGroupKey = 0;
    barSeries3.StackGroupKey = 1;
    barSeries4.StackGroupKey = 1;

    I hope this information helps. Should you have any other questions, I will be glad to assist you.


    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top