iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCILineAnnotationWithLabelsBase

@interface SCILineAnnotationWithLabelsBase
    : SCILineAnnotation <ISCIPropertyHolder>

Provides a base class for SCIHorizontalLineAnnotation, SCIVerticalLineAnnotation.

  • Contains collection of child annotation labels.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) 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 (readwrite, copy, nonatomic) NSAttributedString *attributedLabelValue;

    Swift

    @NSCopying var attributedLabelValue: NSAttributedString! { get set }