iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCITooltipModifier
@interface SCITooltipModifier : SCITooltipModifierBase
The SCITooltipModifier provides a touch-over tooltip to a chart, outputting a single SCISeriesInfo object to bind to which updates as the touch moves over data-points.
See
SCICursorModifier.
See
SCIRolloverModifier.
-
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 theHit-testpoint.Declaration
Objective-C
@property (nonatomic) SCIPlacement markerPlacement;Swift
var markerPlacement: SCIPlacement { get set } -
Gets the
SCITooltipPositionmode, 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 bySCICrossDrawableBehaviorto tooltip marker.Declaration
Objective-C
@property (nonatomic, strong) SCIPenStyle *_Nonnull tooltipPointMarkerPaintStyle;Swift
var tooltipPointMarkerPaintStyle: SCIPenStyle { get set } -
Creates a new instance of
SCITooltipModifierclass.Declaration
Objective-C
- (nonnull instancetype)init;Swift
convenience init() -
Creates a new instance of
SCITooltipModifierclass.Declaration
Objective-C
- (nonnull instancetype)initWithCrossDrawableBehavior: (nonnull SCICrossDrawableBehavior *)crossDrawableBehavior;Swift
convenience init(crossDrawableBehavior: SCICrossDrawableBehavior)Parameters
crossDrawableBehaviorThe
SCIDrawableBehaviorinstance which will be use to show marker which will identify what point will be Hit-tested. -
Creates a new instance of
SCITooltipModifierclass.Declaration
Objective-C
- (nonnull instancetype) initWithCrossDrawableBehavior: (nonnull SCICrossDrawableBehavior *)crossDrawableBehavior andTooltipContainer: (nonnull id<ISCITooltipContainer>)tooltipContainer;Swift
convenience init(crossDrawableBehavior: SCICrossDrawableBehavior, andTooltipContainer tooltipContainer: any ISCITooltipContainer)Parameters
crossDrawableBehaviorThe
SCIDrawableBehaviorinstance which will be use to show marker which will identify what point will be Hit-tested.tooltipContainerThe tooltip container.
-
Creates a new instance of
SCITooltipModifierclass.Declaration
Objective-C
- (nonnull instancetype) initWithTooltipBehavior:(nonnull SCITooltipBehaviorBase *)tooltipBehavior crossDrawableBehavior: (nonnull SCICrossDrawableBehavior *)crossDrawableBehavior;Swift
init(tooltipBehavior: SCITooltipBehaviorBase<any ISCIChartModifier>, crossDrawableBehavior: SCICrossDrawableBehavior)Parameters
tooltipBehaviorThe
SCITooltipBehaviorwhich will be associated with this modifier.crossDrawableBehaviorThe
SCIDrawableBehaviorinstance which will be use to show marker which will identify what point will be Hit-tested.
View on GitHub