iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIRenderableSeries
@protocol
ISCIRenderableSeries <ISCIRenderableSeriesCore, ISCIDrawable, ISCIUpdatable,
ISCIThemeable, ISCIRenderSurfaceChangedListener>
Defines the protocol for all RenderableSeries within SciChart.
Note
Renderable series is charts visual part. For it to be displayed you have toattach renderable series to SCIChartSurface, setup axes ID and provide data series.
See
ISCIDataSeries.
See
ISCIPointMarker.
-
Provides the color which represents this
ISCIRenderableSeriesinstance.Declaration
Objective-C
@property (nonatomic, strong, readonly) UIColor *_Nonnull seriesColor;Swift
var seriesColor: UIColor { get } -
Gets or sets the stroke style of this renderable series instance.
Declaration
Objective-C
@property (nonatomic, strong) SCIPenStyle *_Nonnull strokeStyle;Swift
var strokeStyle: SCIPenStyle { get set } -
Gets or sets the id of XAxis that this
ISCIRenderableSeriesis associated with.Warning
Make sure that axis with given ID attached toSCIChartSurface.Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull xAxisId;Swift
var xAxisId: String { get set } -
Gets or sets the id of YAxis that this
ISCIRenderableSeriesis associated with.Warning
Make sure that axis with given ID attached toSCIChartSurface.Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull yAxisId;Swift
var yAxisId: String { get set } -
Defines the
SCIResamplingModeused when drawing this series.Declaration
Objective-C
@property (nonatomic) SCIResamplingMode resamplingMode;Swift
var resamplingMode: SCIResamplingMode { get set } -
Provides the current
ISCISeriesRenderPassDatainstance which is used for render pass.Declaration
Objective-C
@property (nonatomic, strong, readonly) id<ISCISeriesRenderPassData> _Nonnull currentRenderPassData;Swift
var currentRenderPassData: any ISCISeriesRenderPassData { get } -
Defines the
ISCIPointMarkerfor this renderable series.Declaration
Objective-C
@property (nonatomic, strong, nullable) id<ISCIPointMarker> pointMarker;Swift
var pointMarker: (any ISCIPointMarker)? { get set } -
Defines the
ISCISeriesInfoProviderinstance associated with this series.Declaration
Objective-C
@property (nonatomic, strong) id<ISCISeriesInfoProvider> _Nonnull seriesInfoProvider;Swift
var seriesInfoProvider: any ISCISeriesInfoProvider { get set } -
Defines the
ISCIRenderPassDataTransformationinstance associated with this series.Declaration
Objective-C
@property (nonatomic, strong, nullable) id<ISCIRenderPassDataTransformation> renderPassDataTransformation;Swift
var renderPassDataTransformation: (any ISCIRenderPassDataTransformation)? { get set } -
Defines the
ISCIPaletteProviderinstance associated with this series.Declaration
Objective-C
@property (nonatomic, strong, nullable) id<ISCIPaletteProvider> paletteProvider;Swift
var paletteProvider: (any ISCIPaletteProvider)? { get set } -
Defines the
ISCIDataSeriesassociated with this series.Warning
Make sure that data series type is suitable for specific given renderable series. Check in documentation for specific renderable series.Declaration
Objective-C
@property (nonatomic, strong, nullable) id<ISCIDataSeries> dataSeries;Swift
var dataSeries: (any ISCIDataSeries)? { get set } -
Gets whether this renderable series has data series to draw. YES - if has data series to draw.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL hasDataSeries;Swift
var hasDataSeries: Bool { get } -
Gets the
ISCIReadWriteLockinstance to lock render pass dataDeclaration
Objective-C
@property (nonatomic, readonly) id<ISCIReadWriteLock> _Nonnull renderPassDataLock;Swift
var renderPassDataLock: any ISCIReadWriteLock { get } -
Gets the
ISCIReadWriteLockinstance to lock data seriesDeclaration
Objective-C
@property (nonatomic, readonly) id<ISCIReadWriteLock> _Nonnull dataSeriesLock;Swift
var dataSeriesLock: any ISCIReadWriteLock { get } -
Returns the data range of the
ISCIRenderableSerieson X direction by querying the associated data series. Individual RenderableSeries implementations may override this method to provide custom ranging on per-series basis.Return Value
The XRange of this series.
-
Sets the category data range (range of indices used by
SCICategoryAxisBaseof theISCIRenderableSeries) on X direction by querying the associated data series. Individual RenderableSeries implementations may override this method to provide custom ranging on per-series basis.Declaration
Objective-C
- (void)getCategoryXRange:(nonnull id<ISCIRange>)categoryXRange;Swift
func getCategoryXRange(_ categoryXRange: any ISCIRange)Parameters
categoryXRangeThe category XRange instance to set based on value of this series
-
Returns the data range of the
ISCIRenderableSerieson Y direction by querying the associated data series. Individual RenderableSeries implementations may override this method to provide custom ranging on per-series basis.Return Value
The
Y-Rangeof this series. -
Returns the data range of the
ISCIRenderableSerieson Y direction by querying the associated data series.Declaration
Objective-C
- (nonnull id<ISCIRange>)getYRange: (nonnull id<ISCICoordinateCalculator>)xCoordCalc positive:(BOOL)getPositiveRange;Swift
func getYRange(_ xCoordCalc: any ISCICoordinateCalculator, positive getPositiveRange: Bool) -> any ISCIRangeParameters
xCoordCalcThe XAxis coordinate calculator currently used.
getPositiveRangeIndicates whether to return positive YRange only.
Return Value
The YRange of this series.
-
Performs a hit-test at the specific point
(x,y coordinate)on the parent renderableSeries area.Declaration
Objective-C
- (void)hitTest:(nonnull SCIHitTestInfo *)hitTestResult at:(CGPoint)point;Swift
func hitTest(_ hitTestResult: SCIHitTestInfo, at point: CGPoint)Parameters
hitTestResultThe
SCIHitTestInfoinstance where result of hit-test should be stored.pointThe x-y coordinates in pixels relative to parent renderableSeries area.
-
Performs a hit-test at the specific point
(x,y coordinate)on the parent renderableSeries area.Declaration
Objective-C
- (void)hitTest:(nonnull SCIHitTestInfo *)hitTestResult at:(CGPoint)point withHitTestRadius:(float)hitTestRadius;Swift
func hitTest(_ hitTestResult: SCIHitTestInfo, at point: CGPoint, withHitTestRadius hitTestRadius: Float)Parameters
hitTestResultThe
SCIHitTestInfoinstance where result of hit-test should be stored.pointThe
x-y coordinatesin pixels relative to parent renderableSeries area.hitTestRadiusThe radius in pixels to determine whether hit point is over a data point.
-
Performs a hit-test at the specific point with zero
hit-testradius. Method consider only X values and returns the closes X value.Declaration
Objective-C
- (void)verticalSliceHitTest:(nonnull SCIHitTestInfo *)hitTestResult at:(CGPoint)point;Swift
func verticalSliceHitTest(_ hitTestResult: SCIHitTestInfo, at point: CGPoint)Parameters
hitTestResultThe
SCIHitTestInfoinstance where result of hit-test should be stored.pointThe
x-y coordinatesin pixels relative to parent renderableSeries area. -
Called during render pass and updates current render pass data.
Declaration
Objective-C
- (void)updateRenderPassDataWithXAxis:(nonnull id<ISCIAxis>)xAxis yAxis:(nonnull id<ISCIAxis>)yAxis renderPassState: (nonnull SCIRenderPassState *)renderPassState;Swift
func updateRenderPassData(withXAxis xAxis: any ISCIAxis, yAxis: any ISCIAxis, renderPassState: SCIRenderPassState)Parameters
xAxisThe
X-Axisinstance that thisISCIRenderableSeriesis associated with.yAxisThe
Y-Axisinstance that thisISCIRenderableSeriesis associated with.renderPassStateThe current render pass state.
-
Asynchronously requests invalidate of renderPassData provided by
ISCISeriesRenderPassDataand then invalidates this renderable series.Declaration
Objective-C
- (void)invalidateRenderPassData;Swift
func invalidateRenderPassData()
View on GitHub