This question is locked. New answers and comments are not allowed.
I am hoping you have some examples of using the Stacked Bar Chart with databinding in XAML to a MVVM Property. What I am trying to do is create a chart with "Month" along the horizontal access and to series ("Planned" & "Actual") and then stack the values by the "GroupLvl" Column
here is what I have been trying in XAML, but I am still far from the desired mark.
any help you can provide would be greatly appreciated.
GroupLvl | Xcat | Planned | Actual |
CENTRAL | NOV | 30 | 45 |
CENTRAL | OCT | 0 | 1 |
CENTRAL | SEP | 0 | 0 |
CENTRAL | YTD | 0 | 1 |
SOUTHEAST | APR | 0 | 1 |
SOUTHEAST | AUG | 1 | 0 |
SOUTHEAST | DEC | 1173 | 6840 |
TENNESSEE/KENTUCKY | NOV | 3560 | 3231 |
TENNESSEE/KENTUCKY | OCT | 2126 | 3869 |
TENNESSEE/KENTUCKY | SEP | 2756 | 2174 |
TENNESSEE/KENTUCKY | YTD | 1537 | 2634 |
here is what I have been trying in XAML, but I am still far from the desired mark.
<
telerik:RadChart
x:Name
=
"CxPerformance"
ItemsSource
=
"{Binding CurrentCXCompletedProjectPerformances, Mode=TwoWay}"
VerticalAlignment
=
"Top"
Margin
=
"2"
Grid.Column
=
"0"
telerik:StyleManager.Theme
=
"Windows7"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartTitle
>
<
telerik:ChartTitle
Content
=
"Project Performance"
/>
</
telerik:ChartDefaultView.ChartTitle
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:BarSeriesDefinition
ShowItemLabels
=
"True"
StackGroupName
=
"{Binding GroupLvl}"
/>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
FieldName
=
"Planned"
DataPointMember
=
"YValue"
/>
<
telerik:ItemMapping
FieldName
=
"GroupLvl"
DataPointMember
=
"LegendLabel"
/>
<
telerik:ItemMapping
FieldName
=
"Xcat"
DataPointMember
=
"XCategory"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:BarSeriesDefinition
ShowItemLabels
=
"True"
StackGroupName
=
"Actual"
/>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
FieldName
=
"Actual"
DataPointMember
=
"YValue"
/>
<
telerik:ItemMapping
FieldName
=
"GroupLvl"
DataPointMember
=
"LegendLabel"
/>
<
telerik:ItemMapping
FieldName
=
"Xcat"
DataPointMember
=
"XCategory"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
</
telerik:RadChart
>
any help you can provide would be greatly appreciated.
hi .. have you got output for the above xaml
this is the one im expecting... Could you please send the package..