iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIPointMarker
@protocol ISCIPointMarker <ISCIInvalidatableElement, ISCIAttachable,
ISCIRenderSurfaceChangedListener>
Specifies protocol for rendering point markers. A point marker is something which is displayed at data points.
-
Gets the
ISCIRenderableSeries, which thisISCIPointMarkerinstance is associated with.Declaration
Objective-C
@property (nonatomic, weak, nullable) id<ISCIRenderableSeries> renderableSeries;Swift
weak var renderableSeries: (any ISCIRenderableSeries)? { get set }Return Value
Currently attached
ISCIRenderableSeriesinstance. -
Defines the stroke style (outline) of the PointMarker.
Declaration
Objective-C
@property (nonatomic, strong) SCIPenStyle *_Nonnull strokeStyle;Swift
var strokeStyle: SCIPenStyle { get set } -
Defines the fill style (fill) of the PointMarker.
Declaration
Objective-C
@property (nonatomic, strong) SCIBrushStyle *_Nonnull fillStyle;Swift
var fillStyle: SCIBrushStyle { get set } -
Defines the PointMarker drawing size in points on screen.
Declaration
Objective-C
@property (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:(nonnull id<ISCIRenderContext2D>)renderContext assetManager:(nonnull id<ISCIAssetManager2D>)assetManager strokeStyle:(nonnull SCIPenStyle *)strokeStyle fillStyle:(nonnull SCIBrushStyle *)fillStyle opacity:(float)opacity points:(nonnull float *)points startIndex:(int)startIndex count:(int)count;Swift
func onDraw(with renderContext: any ISCIRenderContext2D, assetManager: any ISCIAssetManager2D, stroke strokeStyle: SCIPenStyle, fill fillStyle: SCIBrushStyle, opacity: Float, points: UnsafeMutablePointer<Float>, start startIndex: Int32, count: Int32)Parameters
renderContextThe
ISCIRenderContext2Dinstance to draw to.assetManagerThe
ISCIAssetManager2Dinstance which allows to create assets for drawing on render context.strokeStyleStroke
SCIPenStyleinstance.fillStyleFill
SCIBrushStyleinstance.opacityThe opacity of point marker.
pointsArray of points to draw
[x0, y0, x1, y1, x2, y2 ...].startIndexStart index of values in the array which need to be drawn.
countThe number of values in the array to process.
View on GitHub