iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIPieLayoutManager

@interface SCIPieLayoutManager : NSObject

Tool for auto layout of Pie and Donut series inside of SCIPieChartSurface

  • SCIPieChartSurface that uses layout manager to calculate Pie and Donut series layyout

    See

    SCIPieChartSurface

    Declaration

    Objective-C

    @property (nonatomic, weak, readwrite) SCIPieChartSurface *parentSurface;

    Swift

    weak var parentSurface: SCIPieChartSurface! { get set }
  • Gets or sets size of hole for first donut series. Hole size in points

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) float holeRadius;

    Swift

    var holeRadius: Float { get set }
  • Gets or sets space between pie series in points

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) float seriesSpacing;

    Swift

    var seriesSpacing: Float { get set }
  • Gets or sets distance from chart area border to pie charts in points

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) float margin;

    Swift

    var margin: Float { get set }
  • Gets or sets minimum series height which is used if autolayout failed to calculate size

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        float seriesMinimumHeight;

    Swift

    var seriesMinimumHeight: Float { get set }
  • Gets or sets distance between segments in circle

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) float segmentSpacing;

    Swift

    var segmentSpacing: Float { get set }
  • Creates intance of layout manager

    See

    SCIPieChartSurface

    Declaration

    Objective-C

    - (instancetype)initWithParent:(SCIPieChartSurface *)parentSurface;

    Swift

    init!(parent parentSurface: SCIPieChartSurface!)

    Parameters

    parentSurface

    SCIPieChartSurface that uses layout manager to calculate Pie and Donut series layyout

  • Method is called on request of parent surface. Calculates layout for Pie and Donut series of parent surface

    Declaration

    Objective-C

    - (void)layoutSeries;

    Swift

    func layoutSeries()