This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to provide a custom color to a spline area chart, like so:
The static color resource, ChartSeriesDark, is defined below:
When I run the app, the chart's color is noticeably lighter than the intended color. If I take a screenshot and sample it in a paint program, the hex color value is coming out as #FF272944. Other uses of this color resource in our app sample correctly as #FF111331.
Can you please help me identify the source of the discrepancy?
I've tried providing a new ControlTemplate targeting BaseLineSeries as described here, but this results in a
Message: Sys.InvalidOperationException: ... Layout cycle detected. Layout could not complete.
I'm hoping I don't have to resort to retemplating to get the chart to display in the color I ask it to display in.
I'm trying to provide a custom color to a spline area chart, like so:
<telerik:RadChart x:Name="chart" ItemsSource="{Binding Cells}" BorderThickness="0" Style="{StaticResource SmallFont}" PaletteBrushesUseSolidColors="True" > <telerik:RadChart.PaletteBrushes> <SolidColorBrush Color="{StaticResource ChartSeriesDark}" /> </telerik:RadChart.PaletteBrushes> <telerik:RadChart.DefaultSeriesDefinition> <telerik:SplineAreaSeriesDefinition LegendDisplayMode="None" ShowPointMarks="False" ShowItemLabels="False" ShowItemToolTips="False" /> </telerik:RadChart.DefaultSeriesDefinition>The static color resource, ChartSeriesDark, is defined below:
<Color x:Key="ChartSeriesDark">#FF111331</Color> When I run the app, the chart's color is noticeably lighter than the intended color. If I take a screenshot and sample it in a paint program, the hex color value is coming out as #FF272944. Other uses of this color resource in our app sample correctly as #FF111331.
Can you please help me identify the source of the discrepancy?
I've tried providing a new ControlTemplate targeting BaseLineSeries as described here, but this results in a
Message: Sys.InvalidOperationException: ... Layout cycle detected. Layout could not complete.
I'm hoping I don't have to resort to retemplating to get the chart to display in the color I ask it to display in.