iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCITooltipModifierStyle

@interface SCITooltipModifierStyle : NSObject <SCITooltipModifierStyleProtocol>

The SCITooltipModifierStyle class.

Note

Provides properties for styling the text and appearence of the TooltipMidifier.
  • Changes appearance of targetMarker on the SCITooltipModifier.

    Note

    You can change style of point marker. Ensure that instance implements SCIPointMarker protocol! let marker = SCIEllipsePointMarker() marker.drawBorder = false marker.fillBrush = SCIBrushSolid(color: UIColor.redColor()) tooltipModifier.style.targetMarker = marker

    See

    SCIPointMarkerProtocol

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite) id<ISCIPointMarker> targetMarker;

    Swift

    var targetMarker: ISCIPointMarker! { get set }
  • Changes target offset mode of hit test. Default is SCITooltipTargetOffset_Up. By default hit test point is located above finger, you can change this bahaviour by changing this property

    See

    SCITooltipTargetOffsetMode

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        SCITooltipTargetOffsetMode targetOffsetMode;

    Swift

    var targetOffsetMode: SCITooltipTargetOffsetMode { get set }
  • Changes target offset distance in pixels. By default it is 50.0 If you need to change target offset direction you can change targetOffsetMode property

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        float targetOffsetValue;

    Swift

    var targetOffsetValue: Float { get set }
  • defines starting offset of hit test point. By default it is (0;0) If you need some custom offset, you can change this property and set targetOffsetMode to SCITooltipTargetOffset_None or targetOffsetValue to 0

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        CGPoint targetCustomOffset;

    Swift

    var targetCustomOffset: CGPoint { get set }