This question is locked. New answers and comments are not allowed.
Hello,
I want to binding color to the Fill and Stroke property of the AreaSeries but when I try to do that, the color of these properties were not changed to the color I set and they were set to the default color (blue).
Here is the code:
The SomeDataToSolidColorBrushConverter is a simple converter is used to convert SomeData to expected SolidColorBrush.
Best
I want to binding color to the Fill and Stroke property of the AreaSeries but when I try to do that, the color of these properties were not changed to the color I set and they were set to the default color (blue).
Here is the code:
01.<telerikChart:AreaSeries02. Fill="{Binding SomeData, Converter={StaticResource SomeDataToSolidColorBrushConverter}}"03. Stroke="{Binding SomeData, Converter={StaticResource SomeDataToSolidColorBrushConverter}}"04. telerikChart:ChartTrackBallBehavior.TrackInfoTemplate="{StaticResource TrackInfoTemplate}">05. <telerikChart:AreaSeries.ValueBinding>06. <telerikChart:PropertyNameDataPointBinding07. PropertyName="Amount" />08. </telerikChart:AreaSeries.ValueBinding>09. 10. <telerikChart:AreaSeries.CategoryBinding>11. <telerikChart:PropertyNameDataPointBinding12. PropertyName="Date" />13. </telerikChart:AreaSeries.CategoryBinding>14. </telerikChart:AreaSeries>The SomeDataToSolidColorBrushConverter is a simple converter is used to convert SomeData to expected SolidColorBrush.
Best