SChartDonutSeries, Add separator lines between donut chart slices


If any body have tried to add a line separator between the slices of a donut chart, like this attached image, kindly provide me a hint or a solution for it, thanks in advanced


Hi Fouad,

You can do this by setting the crust thickness and color of your donut series.

The code below should provide the feature you desire:

SChartDonutSeries *series = [SChartDonutSeries new]; = YES; = @20; = [NSMutableArray arrayWithArray:@[[UIColor whiteColor], [UIColor whiteColor], [UIColor whiteColor], [UIColor whiteColor]]];

Hope this helps.

Kind regards,
Andrew Polkinghorn.


Hello Andrew, your solution worked perfectly !
Thank you very much, you saved my day :slight_smile: