
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 *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:(id<ISCIRenderableSeries>)renderableSeries;
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:(SCIUpdateSeriesTooltipAction)updateAction;
Swift
func update(at xyCoordinate: CGPoint, withUpdateAction updateAction: SCIUpdateSeriesTooltipAction!)
Parameters
updateAction
The action which updated this tooltip.
xyCoordinate
The coordinate to update tooltip at.