How to overlap bars

4 posts, 1 answers
  1. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 19 Apr 2010 Link to this post

    I can't seem to figure out how to overlap series bars (vertical or horizontal). For example, I have two sets of data and series two is always a subset of series one.

    User    Total  Sub
    ------- ----- -----
    Bob        37    20
    Jane      120    55
    Jim        49    23
    George      7     7
    Sue       145   107

    I can get bars side-by-side, but I'd like to float the lower value (it's ALWAYS lower) over the higher values to show comparison/progress. Ideas?
  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 21 Apr 2010 Link to this post

    Hello Art Kedzierski,

    Currently RadChart does not support overlapping of bars, however, you can achieve this goal using stacked bars. What you need to do is having both bar series ( Sub and Total ) in the same stack in order to be drawn above each other and also modify the data, so that the Total bar displays the correct value, instead of adding it's own to the value of the Sub bar.

    Please, review the attached sample project, which demonstrates how to create such a scenario.

    Hope this helps.If you need further assistance, please, do not hesitate to contact us.

    All the best,
    Nikolay
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 21 Apr 2010 Link to this post

    I had a crazy idea about replacing the horizontal bar with a radProgressBar. I'll take a look at your code and play with my idea as well and let you know how it goes.
  5. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 21 Apr 2010 Link to this post

    I'll stick with your suggestion; works great, even horizontal!

    Thank you much!
Back to Top