iOS Charting Documentation - SciChart iOS Charts SDK v3.x

ISCIChartLegend

@protocol ISCIChartLegend <ISCIThemeable>

Provides a protocol for SCIChartLegend, which is used to display series color and name.

  • Defines the theme id for this SCIChartLegend instance.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSString *theme;

    Swift

    var theme: String! { get set }
  • Defines the position of the current ISCIChartLegend instance.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCIAlignment legendPosition;

    Swift

    var legendPosition: SCIAlignment { get set }
  • Provides the legend margins which is default spacing to use when laying out content in the ISCIChartLegend.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIEdgeInsets legendMargins;

    Swift

    var legendMargins: UIEdgeInsets { get set }
  • Defines the orientation for this SCIChartLegend instance.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCIOrientation legendOrientation;

    Swift

    var legendOrientation: SCIOrientation { get set }
  • Defines a value indicating whether the legend should display checkboxes.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL showCheckBoxes;

    Swift

    var showCheckBoxes: Bool { get set }
  • Defines a value indicating whether the legend should display series markers.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL showSeriesMarkers;

    Swift

    var showSeriesMarkers: Bool { get set }