XYDoughnutChart icon indicating copy to clipboard operation
XYDoughnutChart copied to clipboard

how can I add separator line between two slices?

Open Nilesh-Patel opened this issue 10 years ago • 1 comments

Nilesh-Patel avatar Oct 05 '15 16:10 Nilesh-Patel

Separator between slices is not available. Separator(or it is called stroke) is available for all slices by defining

- (CGFloat)doughnutChart:(XYDoughnutChart *)doughnutChart selectedStrokeWidthForSliceAtIndexPath:(NSIndexPath *)indexPath
{
    return 2.0;
}

like https://github.com/yasuoza/XYDoughnutChart/blob/master/Example/XYDoughnutChartDemo/XYDoughnutChartViewController.m#L100-L103.

You can try demo app via

pod try XYDoughnutChart

yasuoza avatar Oct 07 '15 13:10 yasuoza