iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIShiftTooltipHelper
@interface SCIShiftTooltipHelper : NSObject
Helper class which used to shift tooltip placement point .
-
Compute the shifted point according to passed in params.
Declaration
Objective-C
+ (CGPoint)getShiftedPoint:(CGPoint)point customPointOffset:(CGPoint)customPointOffset markerPlacement:(SCIPlacement)markerPlacement offset:(CGFloat)offset;
Swift
class func getShiftedPoint(_ point: CGPoint, customPointOffset: CGPoint, markerPlacement: SCIPlacement, offset: CGFloat) -> CGPoint
Parameters
point
The original point which is going to be shifter.
customPointOffset
If it’s not
CGPointZero
- thenoffset
will be ignored, and this custom one will be applied.markerPlacement
The marker placement to be used during calculations.
offset
The offset which is applied in X-Y directions, according to `markerPlacement.
Return Value
Computed shifited point.