XYDoughnutChart
XYDoughnutChart copied to clipboard
how can I add separator line between two slices?
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