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

SCILineAnnotationWithLabelsBase

@interface SCILineAnnotationWithLabelsBase
    : SCILineAnnotation <ISCIPropertyHolder>

Provides a base class for SCIHorizontalLineAnnotation, SCIVerticalLineAnnotation.

  • Contains collection of child annotation labels.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SCIAnnotationLabelCollection *_Nonnull annotationLabels;

    Swift

    var annotationLabels: SCIAnnotationLabelCollection { get }
  • Gets or sets the ISCIFormattedValueProvider which formats data value for this annotation.

    Declaration

    Objective-C

    @property (nonatomic, strong) id<ISCIFormattedValueProvider> _Nonnull formattedLabelValueProvider;

    Swift

    var formattedLabelValueProvider: ISCIFormattedValueProvider { get set }
  • Defines the NSString with label value for this annotation.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *labelValue;

    Swift

    var labelValue: String? { get set }
  • Defines the attributed string with label value for this annotation.

    Warning

    If set - current annotation instance will ignore the labelValue property.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSAttributedString *attributedLabelValue;

    Swift

    @NSCopying var attributedLabelValue: NSAttributedString? { get set }