iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.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 (nonatomic, strong, nonnull) SCIChartTheme theme;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets legendMargins;

    Swift

    var legendMargins: UIEdgeInsets { get set }
  • Defines the position of the current ISCIChartLegend instance.

    Declaration

    Objective-C

    @property (nonatomic) SCIAlignment legendPosition;

    Swift

    var legendPosition: SCIAlignment { get set }
  • Defines the orientation for this SCIChartLegend instance.

    Declaration

    Objective-C

    @property (nonatomic) SCIOrientation legendOrientation;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) BOOL showCheckBoxes;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) BOOL showSeriesMarkers;

    Swift

    var showSeriesMarkers: Bool { get set }