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: ISCIPieDonutRenderPassData)

    Parameters

    context

    The CGContext to draw on.

    currentPieRenderPassData

    The 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

    segments

    The pie segments to draw.

    center

    The coordinate of center of chart.

    outerRadius

    The outer radius to use during drawing which tells how far from center to draw labels.

    selectedSegmentOffset

    The offset to apply for selected segments.

  • Ends drawing with this drawing manager instance.

    Declaration

    Objective-C

    - (void)onEndDrawing;

    Swift

    func onEndDrawing()