iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCISeriesTooltip
@protocol ISCISeriesTooltip <ISCISeriesTooltipCore, ISCIHitTestInfoUpdatable,
ISCIThemeable>
Defines the protocol for ISCIRenderableSeries
tooltips.
-
Gets the associated
SCISeriesInfo
instance.Declaration
Objective-C
@property (nonatomic, strong, readonly) SCISeriesInfo *_Nonnull seriesInfo;
Swift
var seriesInfo: SCISeriesInfo { get }
-
Draws overlay provided by this tooltip.
Declaration
Objective-C
- (void)onDrawTooltipOverlayInRect:(CGRect)rect;
Swift
func onDrawOverlay(in rect: CGRect)
Parameters
rect
The portion of the view’s bounds that needs to be updated.
-
Checks whether series info contains passed in
ISCIRenderableSeries
instance. Used mostlySCIStackedSeriesTooltipBase
and inheritors.Declaration
Objective-C
- (BOOL)containsHitRenderableSeries: (nonnull id<ISCIRenderableSeries>)renderableSeries;
Swift
func containsHit(_ renderableSeries: ISCIRenderableSeries) -> Bool
Parameters
renderableSeries
The
ISCIRenderableSeries
instance.Return Value
YES - if the underlying
SCISeriesInfo
contains passed in renderableSeries instance. Otherwise - NO. -
Updates tooltips with specified
updateAction
.Declaration
Objective-C
- (void)updateTooltipAt:(CGPoint)xyCoordinate withUpdateAction:(nonnull SCIUpdateSeriesTooltipAction)updateAction;
Swift
func update(at xyCoordinate: CGPoint, withUpdateAction updateAction: @escaping SCIUpdateSeriesTooltipAction)
Parameters
updateAction
The action which updated this tooltip.
xyCoordinate
The coordinate to update tooltip at.