SChartDonutSeries, Add separator lines between donut chart slices


#1

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


#2

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];
series.style.showCrust = YES;
series.style.crustThickness = @20;
series.style.crustColors = [NSMutableArray arrayWithArray:@[[UIColor whiteColor], [UIColor whiteColor], [UIColor whiteColor], [UIColor whiteColor]]];

Hope this helps.

Kind regards,
Andrew Polkinghorn.


#3

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