iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.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.
See
SCIRolloverModifier.
See
SCITooltipModifier.
-
Defines the offset on which tooltip and the marker will be shifted in x and y directions.
Declaration
Objective-C
@property (nonatomic) CGFloat offset;Swift
var offset: CGFloat { get set } -
Gets the
CGPointvalue which will replaceoffsetproperty and will be used to shift tooltip and the marker in custom x and y directions.Declaration
Objective-C
@property (nonatomic) CGPoint customPointOffset;Swift
var customPointOffset: CGPoint { get set } -
Gets the
SCIPlacementmode, to determine where to place tooltip and the marker relatively to the Hit-test point.Declaration
Objective-C
@property (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 (nonatomic) SCITooltipPosition tooltipPosition;Swift
var tooltipPosition: SCITooltipPosition { get set } -
Gets the
SCIPenStyleinstance which will be used bySCICursorCrosshairDrawableBehaviorto draw the crosshair.Declaration
Objective-C
@property (nonatomic, strong) SCIPenStyle *_Nonnull crosshairPenStyle;Swift
var crosshairPenStyle: SCIPenStyle { get set } -
Defines a value indicating whether to display the tooltip when drag over the Axis area or not.
Declaration
Objective-C
@property (nonatomic) BOOL displayTooltipOverAxis;Swift
var displayTooltipOverAxis: Bool { get set } -
Creates a new instance of
SCICursorModifierclass.Declaration
Objective-C
- (nonnull instancetype)init;Swift
convenience init() -
Creates a new instance of
SCICursorModifierclass.Declaration
Objective-C
- (nonnull instancetype)initWithTooltipContainer: (nonnull id<ISCITooltipContainer>)tooltipContainer;Swift
convenience init(tooltipContainer: any ISCITooltipContainer)Parameters
tooltipContainerThe tooltip container.
-
Creates a new instance of
SCICursorModifierclass.Declaration
Objective-C
- (nonnull instancetype) initWithCursorBehavior: (nonnull SCICursorTooltipBehavior *)cursorTooltipBehavior axisTooltipsBehavior: (nonnull SCIAxisTooltipsBehaviorBase *)axisTooltipsBehavior andCrosshairDrawableBehavior: (nonnull SCICursorCrosshairDrawableBehavior *)crosshairDrawableBehavior;Swift
init(cursorBehavior cursorTooltipBehavior: SCICursorTooltipBehavior, axisTooltipsBehavior: SCIAxisTooltipsBehaviorBase, andCrosshairDrawableBehavior crosshairDrawableBehavior: SCICursorCrosshairDrawableBehavior)Parameters
cursorTooltipBehaviorSCICursorTooltipBehaviorwhich will be associated with this modifier.axisTooltipsBehaviorSCIAxisTooltipsBehaviorwhich will be associated with this modifier.crosshairDrawableBehaviorSCICursorCrosshairDrawableBehaviorwhich will be associated with this modifier.
View on GitHub