iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIDefaultLegendItemBase

@interface SCIDefaultLegendItemBase
    : UICollectionViewCell <ISCILegendItem, ISCIThemeable>

Defines a default legend items which contains:

  • UILabel with name.
  • UIButton checkbox for selection of series.
  • UIView which draws series icon.
  • Provivde the checkbox button for selection of series.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) UIButton *checkBoxButton;

    Swift

    @IBOutlet weak var checkBoxButton: UIButton! { get set }
  • Provides the UIView which draws series icon.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) UIView *markerView;

    Swift

    @IBOutlet weak var markerView: UIView! { get set }
  • Provides the UILabel which shows item name.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) UILabel *seriesNameLabel;

    Swift

    @IBOutlet weak 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.