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

SCIChartLegend

@interface SCIChartLegend : UICollectionView <ISCIChartLegend, ISCILayoutable>

Provides a Legend to display series color and name.

  • Places legend on view

    Declaration

    Objective-C

    - (void)placeLegendOnView:(UIView *)view;

    Swift

    func place(on view: UIView!)

    Parameters

    view

    The view to place legend on.

  • Removes legend from its superview

    Declaration

    Objective-C

    - (void)removeLegendFromSuperview;

    Swift

    func removeFromSuperview()