I am trying to provide custom label definition for dynamic line series.I could not set access LabelDefinitions for line series type inside CategoricalSeriesDescriptor.Style . Can you please suggest how to do it ?
<
telerik:RadCartesianChart.SeriesProvider
>
<
telerik:ChartSeriesProvider
Source
=
"{Binding YourData}"
>
<
telerik:ChartSeriesProvider.SeriesDescriptors
>
<
telerik:CategoricalSeriesDescriptor
ItemsSourcePath
=
"YourData"
ValuePath
=
"Value"
CategoryPath
=
"Category"
>
<
telerik:CategoricalSeriesDescriptor.Style
>
<
Style
TargetType
=
"telerik:LineSeries"
>
<
Setter
Property
=
"LabelDefinitions"
>
<
Setter.Value
>
<
telerik:ChartSeriesLabelDefinition
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
>
<
telerik:ChartSeriesLabelDefinition.Template
>
<
DataTemplate
>
<
TextBlock
Foreground
=
"DarkBlue"
Text
=
"{Binding DataItem.Value}"
/>
</
DataTemplate
>
</
telerik:ChartSeriesLabelDefinition.Template
>
</
telerik:ChartSeriesLabelDefinition
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:CategoricalSeriesDescriptor.Style
>
</
telerik:CategoricalSeriesDescriptor
>
</
telerik:ChartSeriesProvider.SeriesDescriptors
>
</
telerik:ChartSeriesProvider
>
</
telerik:RadCartesianChart.SeriesProvider
>