iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIPieDonutDrawingManagerBase
@protocol ISCIPieDonutDrawingManagerBase
Defines the interface with helper methods for rendering of pie and donut renderable series.
-
Begins drawing with this drawing manager instance
Declaration
Objective-C
- (void)onBeginDrawingOnCGContext:(nonnull CGContextRef)context currentPieRenderPassData: (nonnull id<ISCIPieDonutRenderPassData>)currentPieRenderPassData;Swift
func onBeginDrawing(on context: CGContext, currentPieRenderPassData: any ISCIPieDonutRenderPassData)Parameters
contextThe
CGContextto draw on.currentPieRenderPassDataThe current render pass data.
-
Draws specified pie segments.
Declaration
Objective-C
- (void)drawLabelsWithSegments: (nonnull NSArray<SCIPieSegmentRenderPassData *> *)segments center:(CGPoint)center outerRadius:(float)outerRadius selectedSegmentOffset:(float)selectedSegmentOffset;Swift
func drawLabels(withSegments segments: [SCIPieSegmentRenderPassData], center: CGPoint, outerRadius: Float, selectedSegmentOffset: Float)Parameters
segmentsThe pie segments to draw.
centerThe coordinate of center of chart.
outerRadiusThe outer radius to use during drawing which tells how far from center to draw labels.
selectedSegmentOffsetThe offset to apply for selected segments.
-
Ends drawing with this drawing manager instance.
Declaration
Objective-C
- (void)onEndDrawing;Swift
func onEndDrawing()
View on GitHub