iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCITooltipBehavior3D

@interface SCITooltipBehavior3D<T : id <ISCIChartModifier3D>>
    : SCITooltipBehaviorBase3D <T>

Provides a tooltip behavior for ISCIChartModifier3D implementors.

Note

T is the type of modifier to which this behavior will be attached.
  • Creates a new instance of SCITooltipBehavior3D class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithModifierType:(nonnull Class)modifierType
                                tooltipContainer:(nonnull id<ISCITooltipContainer>)
                                                     tooltipContainer;

    Swift

    init(modifierType: AnyClass, tooltipContainer: ISCITooltipContainer)

    Parameters

    modifierType

    The type of the associated ISCIChartModifier3D.

    tooltipContainer

    The tooltip container.

  • Defines the position of the tooltip related to the current touch point.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCITooltipPosition tooltipPosition;

    Swift

    var tooltipPosition: SCITooltipPosition { get set }
  • Tries to update series tooltip on screen.

    Declaration

    Objective-C

    - (BOOL)tryUpdateTooltip:(nonnull id<ISCISeriesTooltip3D>)seriesTooltip
                          at:(CGPoint)point;

    Swift

    func tryUpdate(_ seriesTooltip: ISCISeriesTooltip3D, at point: CGPoint) -> Bool

    Parameters

    seriesTooltip

    The tooltipi to update.

    point

    The [x, y] coordinates of the tooltip on screen.

    Return Value

    YES - if update was successful, otherwise - NO.