The Spline Band Series Type
Spline Band Series are provided by the
SCISplineBandRenderableSeries type. This accepts data (
X, Y, Y1) from a
SCIXyyDataSeries and renders two lines with a polygon, which changes color depending on whether
Y > Y1 or vice versa.
The Spline Band Series can be used to render profit & loss (green / red above or below a zero line), shaded areas of interest, technical indicators such as MACD and Ichimoku, or to simply shade an area above or below a threshold.
SCISplineBandRenderableSeries class allows to specify Fill, FillY1 brushes and Stroke, StrokeY1 pens via the following properties:
NOTE: To learn more about Pens and Brushes and how to utilize them, please refer to the SCIPenStyle, SCIBrushStyle and SCIFontStyle article.
NOTE: In multi axis scenarios, a series has to be assigned to particular X and Y axes. This can be done passing the axes IDs to the
Create a Spline Band Series
To create a Spline Band Series, use the following code:
Spline Band Series Features
Spline Band Series also has some features similar to other series, such as:
Render a Gap in a Spline Band Series
It’s possible to render a Gap in Spline Band series, by passing a data point with a
NaN as the
Y and Y1 value. Please refer to the RenderableSeries APIs article for more details. The
SCISplineBandRenderableSeries, however, allows to specify how a gap should appear. You can treat
NAN values as gaps or close the line. That’s defined by the
SCIRenderableSeriesBase.drawNaNAs property (Please see
NOTE: Please note, even though Gaps via NaN values in spline series is supported, ClosedGaps feature, which is available in regular (non-spline) series, aren’t supported with splines.
Add Point Markers onto a Spline Band Series
Every data point of a Spline Band Series can be marked with a
ISCIPointMarker. To add Point Markers to a Spline Band Series use the
ISCIRenderableSeries.pointMarker property. For more information and code examples, please refer to the PointMarkers API article.
Paint Spline Band Area Parts with Different Colors
In SciChart, you can draw Spline Band Series segments with different colors using the PaletteProvider API.
To Use palette provider for Spline Band Series - a custom
ISCIStrokePaletteProvider) has to be provided to the
ISCIRenderableSeries.paletteProvider property. Please refer to the PaletteProvider API article for more info.