How do I change the line color of a chart series when using a ChartSeriesProvider?
If I'm not using the ChartSeriesProvider, then I do this by setting the "Stroke" property,
as illustrated here. This works:
<
telerik:ScatterLineSeries
Name
=
"HeadSeries"
ItemsSource
=
"{Binding Path=DataPoints}"
XValueBinding
=
"FlowRate"
YValueBinding
=
"Head"
PointTemplate
=
"{StaticResource HeadPointTemplate}"
Stroke
=
"CornflowerBlue"
>
</
telerik:ScatterLineSeries
>
However, if use the ChartSeriesProvider, the following snippet does not change the line color.
<
telerik:ScatterSeriesDescriptor
ItemsSourcePath
=
"Item"
XValuePath
=
"FlowRate"
YValuePath
=
"Head"
>
<
telerik:ScatterSeriesDescriptor.Style
>
<
Style
TargetType
=
"telerik:ScatterLineSeries"
>
<
Setter
Property
=
"PointTemplate"
Value
=
"{StaticResource HeadPointTemplate}"
/>
<
Setter
Property
=
"Stroke"
Value
=
"CornflowerBlue"
/>
</
Style
>
</
telerik:ScatterSeriesDescriptor.Style
>
</
telerik:ScatterSeriesDescriptor
>