SChartSpokeStyle Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in SChartSpokeStyle.h
Availability Standard
Premium
Related samples

Overview

SChartSpokeStyle manages the appearance of spokes for SChartDonutSeries and SChartPieSeries objects.

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.

Tasks

Spoke Properties

Anchor Circle Properties

Properties

anchorColor

Color of the circle. Default is black.

@property (nonatomic, strong, nullable) UIColor *anchorColor

Declared In

SChartSpokeStyle.h

anchorOffset

Starting point of the spoke relative to the midpoint of the slice, in points. Default is 0.

@property (nonatomic, assign) CGFloat anchorOffset

Declared In

SChartSpokeStyle.h

anchorRadius

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

Declared In

SChartSpokeStyle.h

color

Color of the spoke lines. Default is black.

@property (nonatomic, strong, nullable) UIColor *color

Declared In

SChartSpokeStyle.h

labelPadding

Amount of space between the label and the line joins, in points. Default is 10.

@property (nonatomic, assign) CGFloat labelPadding

Declared In

SChartSpokeStyle.h

length

Length of the spoke, starting from the anchor point. Default is half the slice’s radius + 40.

@property (nonatomic, assign) CGFloat length

Declared In

SChartSpokeStyle.h

showSpokes

Set the visibility of the spokes Default is NO/false.

@property (nonatomic, assign) BOOL showSpokes

Declared In

SChartSpokeStyle.h

width

Width of the spoke lines in points. Default is 1.

@property (nonatomic, assign) CGFloat width

Declared In

SChartSpokeStyle.h

Instance Methods

supplementStyleFromStyle:

Updates this style object using the settings from the passed-in style.

- (void)supplementStyleFromStyle:(SChartSpokeStyle *)style

Parameters

style

The style with which to configure this style object.

Declared In

SChartSpokeStyle.h