iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCICursorModifier

@interface SCICursorModifier : SCITooltipModifierWithAxisLabelsBase

The SCICursorModifier provides a cross-hairs (cursor) plus tooltip with X, Y data values under the finger as the touch moves. Add to a SCIChartSurface and set ISCIChartModifier.isEnabled to YES to enable this behaviour.

  • Defines the offset on which tooltip and the marker will be shifted in x and y directions.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) float offset;

    Swift

    var offset: Float { get set }
  • Gets the CGPoint value which will replace offset property and will be used to shift tooltip and the marker in custom x and y directions.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGPoint customPointOffset;

    Swift

    var customPointOffset: CGPoint { get set }
  • Gets the SCIPlacement mode, to determine where to place tooltip and the marker relatively to the Hit-test point.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) SCIPlacement markerPlacement;

    Swift

    var markerPlacement: SCIPlacement { get set }
  • Gets the `SCITooltipPosition mode, to determine where to place tooltip relatively to the marker.

    Declaration

    Objective-C

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

    Swift

    var tooltipPosition: SCITooltipPosition { get set }
  • Gets the SCIPenStyle instance which will be used by SCICursorCrosshairDrawableBehavior to draw the crosshair.

    Declaration

    Objective-C

    @property (readonly, nonatomic) SCIPenStyle *crosshairPenStyle;

    Swift

    var crosshairPenStyle: SCIPenStyle! { get }
  • Creates a new instance of SCICursorModifier class.

    Declaration

    Objective-C

    - (instancetype)initWithTooltipContainer:
        (id<ISCITooltipContainer>)tooltipContainer;

    Swift

    init!(tooltipContainer: ISCITooltipContainer!)

    Parameters

    tooltipContainer

    The tooltip container.