BarSeries width differes when combining Clustered and Stacked combine modes

3 posts, 1 answers
  1. Mitchell
    Mitchell avatar
    45 posts
    Member since:
    Mar 2013

    Posted 22 Oct 2014 Link to this post

    In the first attached screenshot, I have 6 BarSeries (all with the same values for the data).  5 series are stacked in 2 groups (using the stack key). The sixth series has a combine mode of Clustered.   You can see where the Clustered series is much wider than the stacked series.  In the second screenshot, I have 3 BarSeries. 2 are Clustered and 1 is Stacked. In this case, the Stacked BarSeries is the one that is wider than the other series.  I am using a point template for BarSeries, but it is not doing anything with the width (It's a Border).  Is the width difference purposeful, or is this a bug?
  2. Answer
    Martin Ivanov
    Martin Ivanov avatar
    1408 posts

    Posted 27 Oct 2014 Link to this post

    Hi Mitchell,

    The reported behavior is caused by the fact that the chart is allocating equal space in each category slot (the distance between two adjacent ticks on the axis) for each type of bar series. For example, when you define stacked and clustered series the category slot will be split in half and one part will be used for the stacked series and the other for the clustered ones located in the slot.

    In your case you have 2 clustered series and 1 stacked, which means the clustered series will occupy the left side and the stacked series will occupy the right side. For example, if the entire slot's width is 100 pixels, the clustered series will use 50px (so 25 pixels per bar). On the other hand the stacked series will use the 50px (so 50 pixels per bar).

    Please let me know if you have any further questions.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Mitchell
    Mitchell avatar
    45 posts
    Member since:
    Mar 2013

    Posted 27 Oct 2014 in reply to Martin Ivanov Link to this post

    That makes sense. I can achieve a clustered look where bars are of equal width by simply setting series I previously had clustered to a group all by themselves (so a "stack" of 1).  Thanks for the explanation!
Back to Top