iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIPolyLineAnnotation
@protocol ISCIPolyLineAnnotation <ISCITradingAnnotation>
Defines the interface for a polygon annotation. Extends ISCITradingAnnotation with a pixel-coordinate base point update method.
-
Updates the position of the point at the given index using raw pixel coordinates. The implementation is responsible for converting pixels back to data values.
Declaration
Objective-C
- (void)updateBasePointAtIndex:(NSInteger)index xCoordinate:(CGFloat)xCoord yCoordinate:(CGFloat)yCoord;Swift
func updateBasePoint(at index: Int, xCoordinate xCoord: CGFloat, yCoordinate yCoord: CGFloat)Parameters
indexThe index of the point to update.
xCoordThe new x position in pixel (screen) coordinates.
yCoordThe new y position in pixel (screen) coordinates.
View on GitHub