Hi,
In my RadChart, I currently set the FieldName of the SeriesMapping.ItemMapping statically. However, I want to be able to change which field within the dataset is being plotted dynamically at runtime.
I've set the FieldName to be set with a binding and the chart initially draws, but, when I change the property being bound to, the chart does not re-draw to reflect this change.
Am I missing something?
Thanks for any help,
Martyn.
In my RadChart, I currently set the FieldName of the SeriesMapping.ItemMapping statically. However, I want to be able to change which field within the dataset is being plotted dynamically at runtime.
I've set the FieldName to be set with a binding and the chart initially draws, but, when I change the property being bound to, the chart does not re-draw to reflect this change.
<
telerik:SeriesMapping
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:StackedBarSeriesDefinition
ShowItemToolTips
=
"True"
ItemToolTipFormat
=
"{StaticResource HomeDealerChartCurrTooltip}"
ItemLabelFormat
=
"{StaticResource OverspendTooltipLabelFormat}"
ItemStyle
=
"{StaticResource StackedBarDefaultStyle}"
>
<
telerik:StackedBarSeriesDefinition.InteractivitySettings
>
<
telerik:InteractivitySettings
HoverScope
=
"Series"
SelectionScope
=
"Item"
/>
</
telerik:StackedBarSeriesDefinition.InteractivitySettings
>
</
telerik:StackedBarSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
FieldName
=
"OverspendToDate"
DataPointMember
=
"YValue"
/>
<
telerik:ItemMapping
FieldName
=
"{Binding SelectedMeasure}"
DataPointMember
=
"XCategory"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
Am I missing something?
Thanks for any help,
Martyn.