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) -> CGPointParameters
pointThe original point which is going to be shifter.
customPointOffsetIf it’s not
CGPointZero- thenoffsetwill be ignored, and this custom one will be applied.markerPlacementThe marker placement to be used during calculations.
offsetThe offset which is applied in X-Y directions, according to `markerPlacement.
Return Value
Computed shifited point.
View on GitHub