iOS Charting Documentation - SciChart iOS Charts SDK v3.x

ISCIPointMarker

Specifies protocol for rendering point markers. A point marker is something which is displayed at data points.

  • Gets the ISCIRenderableSeries, which this ISCIPointMarker instance is associated with.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) id<ISCIRenderableSeries> renderableSeries;

    Return Value

    Currently attached ISCIRenderableSeries instance.

  • Defines the stroke style (outline) of the PointMarker.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SCIPenStyle *strokeStyle;

    Swift

    var strokeStyle: SCIPenStyle! { get set }
  • Defines the fill style (fill) of the PointMarker.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) SCIBrushStyle *fillStyle;

    Swift

    var fillStyle: SCIBrushStyle! { get set }
  • Defines the PointMarker drawing size in points on screen.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGSize size;

    Swift

    var size: CGSize { get set }
  • Renders the PointMarker at specified points with fill and stroke. Each point is a coordinate in the centre of the ISCIPointMarker.

    Declaration

    Objective-C

    - (void)onDrawWithContext:(id<ISCIRenderContext2D>)renderContext
                 assetManager:(id<ISCIAssetManager2D>)assetManager
                  strokeStyle:(SCIPenStyle *)strokeStyle
                    fillStyle:(SCIBrushStyle *)fillStyle
                      opacity:(float)opacity
                       points:(float *)points
                   startIndex:(int)startIndex
                        count:(int)count;

    Swift

    func onDraw(with renderContext: ISCIRenderContext2D!, assetManager: ISCIAssetManager2D!, stroke strokeStyle: SCIPenStyle!, fill fillStyle: SCIBrushStyle!, opacity: Float, points: UnsafeMutablePointer<Float>!, start startIndex: Int32, count: Int32)

    Parameters

    renderContext

    The ISCIRenderContext2D instance to draw to.

    assetManager

    The ISCIAssetManager2D instance which allows to create assets for drawing on render context.

    strokeStyle

    Stroke SCIPenStyle instance.

    fillStyle

    Fill SCIBrushStyle instance.

    opacity

    The opacity of point marker.

    points

    Array of points to draw [x0, y0, x1, y1, x2, y2 ...].

    startIndex

    Start index of values in the array which need to be drawn.

    count

    The number of values in the array to process.