
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIPieRenderableSeries
@protocol ISCIPieRenderableSeries <
ISCIRenderableSeriesCore, ISCIPieChartSurfaceProvider,
ISCIInvalidatableElement, ISCIAttachable, ISCIThemeable>
Defines the interface for renderable series which are used within ISCIPieChartSurface
.
-
Gets or sets a flag indicating whether to draw labels over segments, or not.
Declaration
Objective-C
@property (nonatomic) BOOL drawLabels;
-
Gets or sets the start angle value from which this series will be drawn.
Declaration
Objective-C
@property (nonatomic) float startAngle;
-
Gets or sets the value which specifies the offset from center, which will be used for selected
ISCIPieSegment
s.Declaration
Objective-C
@property (nonatomic) float selectedSegmentOffset;
-
Gets or sets the
ISCIPieRenderableSeries
height consideringheightSizingMode
.Declaration
Objective-C
@property (nonatomic) float height;
-
Gets or sets the
SCISizingMode
to use for computation of this series height. E.g. the default of Absolute requires that the spacing value is in pixels. The value of Relative requires relative spacing value.Declaration
Objective-C
@property (nonatomic) SCISizingMode heightSizingMode;
-
Gets or sets the value indicating spacing between segments of current
ISCIPieRenderableSeries
.Declaration
Objective-C
@property (nonatomic) float segmentSpacing;
-
Gets or sets the value determines which percentage of the circumference is occupied by the series.
Declaration
Objective-C
@property (nonatomic) float scale;
-
Gets or sets the name of this series.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nonnull seriesName;
-
Gets the collection of
ISCIPieSegment
that thisISCIPieRenderableSeries
draws.Declaration
Objective-C
@property (nonatomic, strong, readonly) SCIPieSegmentCollection *_Nonnull segmentsCollection;
-
Gets the collection of
ISCIPieSegment
that are selected.Declaration
Objective-C
@property (nonatomic, strong, readonly) SCIPieSegmentCollection *_Nonnull selectedSegmentsCollection;
-
Checks if this
ISCIPieRenderableSeries
has segments in it’sSCIPieSegmentCollection
.Declaration
Objective-C
@property (nonatomic, readonly) BOOL hasSegments;
Return Value
true if this
ISCIPieRenderableSeries
has at least one segment. Otherwise - false. -
Returns the current
ISCIPieDonutRenderPassData
instance which is used for render pass.Declaration
Objective-C
@property (nonatomic, strong, readonly) id<ISCIPieDonutRenderPassData> _Nonnull currentRenderPassData;
-
Performs a hit-test at the specific point
[x, y]
coordinate on the parentSCIPieChartSurface
.Declaration
Objective-C
- (void)hitTest:(nonnull SCIPieHitTestInfo *)hitTestResult at:(CGPoint)point;
Parameters
hitTestResult
The SCIPieHitTestInfo instance where result of hit-test should be stored.
point
point The x-y coordinates in pixels relative to parent SCIPieChartSurface.
-
Gets or sets the
ISCIPieSeriesInfoProvider
instance associated with this series.Declaration
Objective-C
@property (nonatomic, strong) id<ISCIPieSeriesInfoProvider> _Nonnull seriesInfoProvider;
-
Gets or sets label formatter for
ISCIPieSegment
collection use by this series.Declaration
Objective-C
@property (nonatomic, strong, nullable) id<ISCIPieSegmentLabelFormatter> pieSegmentLabelFormatter;
-
Asynchronously requests layout for the parent
ISCIPieChartSurface
instance.Declaration
Objective-C
- (void)invalidateLayout;
-
Called during layout pass and updates current layout pass data.
Declaration
Objective-C
- (void)updateLayoutPassDataWithState: (nonnull SCIPieChartLayoutState *)pieChartLayoutState;
-
Draws this ISCIPieRenderableSeries instance.
Declaration
Objective-C
- (void)onDrawOnCGContext:(nonnull CGContextRef)context;
Parameters
context
The
CGContext
to draw on. -
Animates this series with specified duration.
Declaration
Objective-C
- (void)animateWithDuration:(NSTimeInterval)duration;
Parameters
duration
The duration of animation in milliseconds.