Hi Vito Feleppa,
Greetings from Syncfusion.
Yes, you can set color for every item in PieSeries. You can achieve this requirement by setting the CustomBrushes which is available in ChartSeries. Please refer below code snippet.
Code Snippet[Xaml]:
<StackLayout.Resources>
<ResourceDictionary>
<chart:ChartColorCollection x:Key="Colors">
<Color>Red</Color>
<Color>Gray</Color>
<Color>Pink</Color>
<Color> Blue</Color>
<Color>YellowGreen</Color>
<Color>Aqua</Color>
</chart:ChartColorCollection>
</ResourceDictionary>
</StackLayout.Resources>
<chart:SfChart.Series>
<chart:PieSeries ItemsSource="{Binding Data}" XBindingPath="XValue" YBindingPath="YValue">
<chart:PieSeries.ColorModel>
<chart:ChartColorModel Palette="Custom" CustomBrushes="{StaticResource Colors}"/>
</chart:PieSeries.ColorModel>
</chart:PieSeries>
</chart:SfChart.Series> |
Please refer below link to know more about the CustomBrushes.
And we have prepared a sample based on your requirement and you can download the sample from the below link.
Screenshot:
Please let us know if need any further assistance.
Regards,
Hemalatha M.