This is a migrated thread and some comments may be shown as answers.

How to overlap bars

3 Answers 139 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Art Kedzierski
Top achievements
Rank 2
Art Kedzierski asked on 19 Apr 2010, 07:49 PM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 21 Apr 2010, 09:34 AM
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.
0
Art Kedzierski
Top achievements
Rank 2
answered on 21 Apr 2010, 03:29 PM
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.
0
Art Kedzierski
Top achievements
Rank 2
answered on 21 Apr 2010, 07:33 PM
I'll stick with your suggestion; works great, even horizontal!

Thank you much!
Tags
Chart
Asked by
Art Kedzierski
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Art Kedzierski
Top achievements
Rank 2
Share this question
or