iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIDefaultLegendItemBase

@interface SCIDefaultLegendItemBase
    : UICollectionViewCell <ISCILegendItem, ISCIThemeable>

Defines a default legend items which contains:

  • Label with name.
  • Button checkbox for selection of series.
  • View which draws series icon.
  • Provides the Checkbox Button for selection of series.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCISelectableButton *checkBoxButton;

    Swift

    var checkBoxButton: SCISelectableButton! { get set }
  • Provides the View which draws series icon.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIView *markerView;

    Swift

    var markerView: UIView! { get set }
  • Provides the Label which shows item name.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UILabel *seriesNameLabel;

    Swift

    var seriesNameLabel: UILabel! { get set }
  • Defines the action which is used by chechbox button.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        SCILegendCheckboxAction checkBoxTouchUpInsideAction;

    Swift

    var checkBoxTouchUpInsideAction: SCILegendCheckboxAction! { get set }
  • Defines a method which allows to update checkBoxButton visibility.

    Declaration

    Objective-C

    - (void)setCheckBoxVisibility:(BOOL)visibility;

    Swift

    func setCheckBoxVisibility(_ visibility: Bool)

    Parameters

    visibility

    The new visibility value.

  • Defines a method which allows to update markerView visibility.

    Declaration

    Objective-C

    - (void)setSeriesMarkerVisibility:(BOOL)visibility;

    Swift

    func setSeriesMarkerVisibility(_ visibility: Bool)

    Parameters

    visibility

    The new visibility value.