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

    index

    The index of the point to update.

    xCoord

    The new x position in pixel (screen) coordinates.

    yCoord

    The new y position in pixel (screen) coordinates.