Thanks for @Wingzero's answer.
However I do not want to change the source code or override some methods of it.
Finally, I found the property for the highlight effect of selected slice.
It is a property of @interface PieChartDataSet : ChartDataSet
.
/// indicates the selection distance of a pie slice
@property (nonatomic) CGFloat selectionShift;
By setting it as dataSet.selectionShift = 7.0;
, it works for my design.
Here attaches the object of dataSet:
PieChartDataSet *dataSet = [[PieChartDataSet alloc] initWithYVals:yVals1 label:NULL];
dataSet.selectionShift = 7.0;
PieChartData *data = [[PieChartData alloc] initWithXVals:nil dataSet:dataSet];
self.pieChartView.data = data;
This is the effect what I have expected.
