iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIPieSegment

@interface SCIPieSegment : NSObject <ISCIInvalidatableElement>

Segment of Pie or Donut renderable series

See

SCIPieRenderableSeries

See

SCIDonutRenderableSeries
  • Gets or sets fill style for segment

    See

    SCIBrushStyle

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        SCIBrushStyle *fillStyle;

    Swift

    var fillStyle: SCIBrushStyle? { get set }
  • Gets or sets selected fill style for segment

    See

    SCIBrushStyle

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        SCIBrushStyle *selectedFillStyle;

    Swift

    var selectedFillStyle: SCIBrushStyle? { get set }
  • Gets or sets stroke style for segment

    See

    SCIPenStyle

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        SCIPenStyle *strokeStyle;

    Swift

    var strokeStyle: SCIPenStyle? { get set }
  • Gets or sets selected stroke style for segment

    See

    SCIPenStyle

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        SCIPenStyle *selectedStrokeStyle;

    Swift

    var selectedStrokeStyle: SCIPenStyle? { get set }
  • Gets or sets text style for segment

    See

    SCIFontStyle

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        SCIFontStyle *titleStyle;

    Swift

    var titleStyle: SCIFontStyle? { get set }
  • Gets or sets selected text style for segment

    See

    SCIFontStyle

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        SCIFontStyle *selectedTitleStyle;

    Swift

    var selectedTitleStyle: SCIFontStyle? { get set }
  • offset in points for segment from center of series

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) double centerOffset;

    Swift

    var centerOffset: Double { get set }
  • Gets or sets selected state for segment

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) BOOL isSelected;

    Swift

    var isSelected: Bool { get set }
  • Value for segment. Has influence on relative size of segment in renderable series

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) double value;

    Swift

    var value: Double { get set }
  • Title associated with segment.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite, nullable) NSString *title;

    Swift

    var title: String? { get set }
  • Returns fill style depending on selected state

    Declaration

    Objective-C

    - (SCIBrushStyle *_Nullable)getFillStyle;

    Swift

    func getFillStyle() -> SCIBrushStyle?
  • Returns stroke style depending on selected state

    Declaration

    Objective-C

    - (SCIPenStyle *_Nullable)getStrokeStyle;

    Swift

    func getStrokeStyle() -> SCIPenStyle?
  • Returns text style depending on selected state

    Declaration

    Objective-C

    - (SCIFontStyle *_Nullable)getTextStyle;

    Swift

    func getTextStyle() -> SCIFontStyle?
  • Returns color associated with segment. By default it is taken from fill style

    Declaration

    Objective-C

    - (UIColor *_Nullable)segmentColor;

    Swift

    func segmentColor() -> UIColor?
  • Attaches this instance to the instance of ISCIPieRenderableSeries.

    Declaration

    Objective-C

    - (void)attachTo:(nonnull id<ISCIPieRenderableSeries>)series;

    Swift

    func attach(to series: ISCIPieRenderableSeries)
  • Detaches this instance from currently ISCIPieRenderableSeries instance.

    Declaration

    Objective-C

    - (void)detach;

    Swift

    func detach()
  • Gets whether this instance is attached on not.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isAttached;

    Swift

    var isAttached: Bool { get }