Hi,
I used RadCartesianChart with a custom palette and I want to bind the color of the series to the axis. Here is (part of) my XAML:
You can see that on line 13, I used a dependency property LogarithmicAxisBrush, which I will set the value in the code, as a workaround. But I want to bind the color of the series to the axis.
Thank you!
I used RadCartesianChart with a custom palette and I want to bind the color of the series to the axis. Here is (part of) my XAML:
01.<telerik:RadCartesianChart x:Name="Chart" Palette="{StaticResource ChartPalette}">02. 03. <telerik:RadCartesianChart.SeriesProvider>04. <telerik:ChartSeriesProvider Source="{Binding SeriesProvider, ElementName=Control}">05. <telerik:ChartSeriesProvider.SeriesDescriptors>06. <telerik:CategoricalSeriesDescriptor ItemsSourcePath="ItemsSource" CategoryPath="Time" ValuePath="Value">07. <telerik:CategoricalSeriesDescriptor.Style>08. <Style TargetType="{x:Type telerik:LineSeries}">09. <Style.Triggers>10. <DataTrigger Binding="{Binding UseLogarithmicAxis}" Value="True">11. <Setter Property="VerticalAxis">12. <Setter.Value>13. <telerik:LogarithmicAxis HorizontalLocation="Right" LineStroke="{Binding LogarithmicAxisBrush}" />14. </Setter.Value>15. </Setter>16. </DataTrigger>17. </Style.Triggers>18. </Style>19. </telerik:CategoricalSeriesDescriptor.Style>20. </telerik:CategoricalSeriesDescriptor>21. </telerik:ChartSeriesProvider.SeriesDescriptors>22. </telerik:ChartSeriesProvider>23. </telerik:RadCartesianChart.SeriesProvider>24. 25. <telerik:RadCartesianChart.HorizontalAxis>26. <telerik:DateTimeContinuousAxis />27. </telerik:RadCartesianChart.HorizontalAxis>28. 29. <telerik:RadCartesianChart.VerticalAxis>30. <telerik:LinearAxis />31. </telerik:RadCartesianChart.VerticalAxis>32. 33.</telerik:RadCartesianChart>You can see that on line 13, I used a dependency property LogarithmicAxisBrush, which I will set the value in the code, as a workaround. But I want to bind the color of the series to the axis.
Thank you!