Hi, I was wondering if you can help. I've had a look, and there doesn't appear to be a clear example of defining and using a custom palette for a PieSeries chart with the custom colours defined in the XAML, rather than trying to set things up in the code behind.. (I'm using the latest version of Essential Studio for WinRT with Windows 8.1)
For example, the following does work when "Metro" is selected as the palette:
<charts:SfChart DataContext="{Binding Data}" Width="480" Height="270" HorizontalAlignment="Left">
<charts:PieSeries Label="Series1" Palette="Metro" XBindingPath="Key" YBindingPath="Value" ItemsSource="{Binding}" >
<charts:PieSeries.AdornmentsInfo>
<charts:ChartAdornmentInfo VerticalAlignment="Center"
HorizontalAlignment="Center"/>
</charts:PieSeries.AdornmentsInfo>
</charts:PieSeries>
<charts:SfChart.Legend>
<charts:ChartLegend DockPosition="Right"/>
</charts:SfChart.Legend>
</charts:SfChart>
However, I would like to set Palette = "Custom", and then define the custom colours within the appropriate part of the XAML... I assume this would take the form of more XAML within a
<charts:PieSeries.ColorModel>
....
</charts:PieSeries.ColorModel>
..section??
I'd be very grateful if you are able to provide me an example of how to do this properly using the example above as a starting point please?