This question is locked. New answers and comments are not allowed.
Hi, according to sample, i am coloring columns using DataTemplate. At the same page, i use the same colors to color Pie chart, there they are defined in the global pallete. Is there any change to use one declaration of colors to avoid copy-paste?
<Grid Grid.Row="1"> <Grid.Resources> <telerikChart:ChartPalette x:Key="paletteEntryCollection"> <telerikChart:ChartPalette.GlobalEntries> <telerikChart:PaletteEntry Fill="#207098" Stroke="{StaticResource PhoneForegroundBrush}" /> </telerikChart:ChartPalette.GlobalEntries> </telerikChart:ChartPalette> </Grid.Resources> <telerikChart:RadCartesianChart Name="BarChart" Palette="{StaticResource paletteEntryCollection}" > <telerikChart:RadCartesianChart.HorizontalAxis> <telerikChart:LinearAxis ShowLabels="False" /> </telerikChart:RadCartesianChart.HorizontalAxis> <telerikChart:RadCartesianChart.VerticalAxis > <telerikChart:CategoricalAxis> <telerikChart:CategoricalAxis.LabelStyle> <Style TargetType="TextBlock"> <Setter Property="FontSize" Value="20" /> </Style> </telerikChart:CategoricalAxis.LabelStyle> </telerikChart:CategoricalAxis> </telerikChart:RadCartesianChart.VerticalAxis> <telerikChart:BarSeries ShowLabels="True" ValueBinding="Value" CategoryBinding="Category"> <telerikChart:BarSeries.PointTemplates> <DataTemplate> <Rectangle Fill="#207098"/> </DataTemplate> </telerikChart:BarSeries.PointTemplates> </telerikChart:BarSeries> </telerikChart:RadCartesianChart></Grid>