Hi,
I have the following problem that I can't resolve. I want to create a stacked bar chart for a bug tracker system that shows how many features are closed every day. Every stacked column should contain for example 3 stacked features (if 3 features are closed this day) and the height of each feature is the time that it takes to implement it.
Here is the example:
22.03.2011 -> 4 issues (1st - 2h, 2nd - 4h, 3th - 5h, 4th - 6h)
23.03.2011 -> 2 issues closed (1st - 3h, 2nd - 30h)
24.03.2011 -> 3 issues closed (1st - 5h, 2nd - 25h, 3th - 1h)
ets...
so on the Axis X I have the dates: 22, 23 and 24. March 2011
and on Axis Y I have values: 26h (5 points in 1 color, 25 in other and 1 in third); 33h and 17 h as values.
Every issues must have different color in it's stacked bar. The number of closed issues per day is generated dynamically so I don't know how many series I will need for each bar.
Can you give me advice how to create such stacked bar and is it possible to create it.
I have the following problem that I can't resolve. I want to create a stacked bar chart for a bug tracker system that shows how many features are closed every day. Every stacked column should contain for example 3 stacked features (if 3 features are closed this day) and the height of each feature is the time that it takes to implement it.
Here is the example:
22.03.2011 -> 4 issues (1st - 2h, 2nd - 4h, 3th - 5h, 4th - 6h)
23.03.2011 -> 2 issues closed (1st - 3h, 2nd - 30h)
24.03.2011 -> 3 issues closed (1st - 5h, 2nd - 25h, 3th - 1h)
ets...
so on the Axis X I have the dates: 22, 23 and 24. March 2011
and on Axis Y I have values: 26h (5 points in 1 color, 25 in other and 1 in third); 33h and 17 h as values.
Every issues must have different color in it's stacked bar. The number of closed issues per day is generated dynamically so I don't know how many series I will need for each bar.
Can you give me advice how to create such stacked bar and is it possible to create it.
5 Answers, 1 is accepted
0
Hello Liliah,
The example attached shows how to create Series run-time using the MVVM pattern. The Chart is created using SeriesMappings which are added in the ViewModel on CollectionChanged where the collection is ObservableCollection.
Additionally you may take a look at this forum post that describes (together with source code) how you can create Stacked Bar with SeriesMapping for each Bar Serie.
All the best,
Evgenia
the Telerik team
The example attached shows how to create Series run-time using the MVVM pattern. The Chart is created using SeriesMappings which are added in the ViewModel on CollectionChanged where the collection is ObservableCollection.
Additionally you may take a look at this forum post that describes (together with source code) how you can create Stacked Bar with SeriesMapping for each Bar Serie.
All the best,
Evgenia
the Telerik team
0
Lilia
Top achievements
Rank 1
answered on 31 Mar 2011, 09:40 AM
Hello Evgenia,
Yet, I didn't understand whether I can do this (see attachment).
Thank you for your consideration.
Lily
Yet, I didn't understand whether I can do this (see attachment).
Thank you for your consideration.
Lily
0
Accepted
Hello Liliah,
Yes you can create such type of Chart using our RadChart control.
The attached project demonstrates how to create StackedBar using Manual Series Mappings. When the chart is bound those Bars that have YValue = 0 have their Labels set to White Space string. The attached picture shows the result. Feel free to modify the sample code so that it applies your scenario.
Kind regards,
Evgenia
the Telerik team
Yes you can create such type of Chart using our RadChart control.
The attached project demonstrates how to create StackedBar using Manual Series Mappings. When the chart is bound those Bars that have YValue = 0 have their Labels set to White Space string. The attached picture shows the result. Feel free to modify the sample code so that it applies your scenario.
Kind regards,
Evgenia
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
Lilia
Top achievements
Rank 1
answered on 14 Apr 2011, 08:28 AM
Thank you for your reply.
I managed to create different count of series (which was my main issue) by setting the corresponding value in the datasource to be null.
I'm a beginner with this kind of technology so I apologize if I ask something stupid :)
I managed to create different count of series (which was my main issue) by setting the corresponding value in the datasource to be null.
I'm a beginner with this kind of technology so I apologize if I ask something stupid :)
0
Hi Lilia,
I am glad that the issue you were facing is now resolved. Please do not hesitate to contact us if you have any additional questions.
All the best,
Evgenia
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