Spokes provide an alternative way to display labels on a pie or donut chart. Labels are positioned outside the series with a line drawn from them to the center of the slice.
For spokes to be drawn,
showSpokes must be enabled.
Spokes can be enabled on a per-slice basis. Please see our user guide for a code sample.
Color of the circle. Default is black.
@property (nonatomic, strong, nullable) UIColor *anchorColor
Starting point of the spoke relative to the midpoint of the slice, in points. Default is 0.
@property (nonatomic, assign) CGFloat anchorOffset
The radius of the circle from which the line extends out of the pie/donut, in points. Default is 5.
@property (nonatomic, assign) CGFloat anchorRadius
Color of the spoke lines. Default is black.
@property (nonatomic, strong, nullable) UIColor *color
Amount of space between the label and the line joins, in points. Default is 10.
@property (nonatomic, assign) CGFloat labelPadding
Length of the spoke, starting from the anchor point. Default is half the slice’s radius + 40.
@property (nonatomic, assign) CGFloat length
Set the visibility of the spokes
@property (nonatomic, assign) BOOL showSpokes