SChartBandSeries Class Reference

Inherits from SChartCartesianSeries : SChartMappedSeries : SChartSeries : NSObject
Declared in SChartBandSeries.h
Availability Premium
Related samples FinancialChart

Overview

SChartBandSeries is a type of SChartSeries that uses its data points to construct a band series.

Data points in a band series will contain multiple values. This means that they will be instances of SChartMultiXDataPoint or SChartMultiYDataPoint, depending on the orientation of the series. The keys for the values in each data point will be SChartBandSeriesHigh and SChartBandSeriesLow.

The band series is visualised as two line series, one for the High values and one for the Low, with an area fill between the lines. The colour of this fill depends on the relationship between the lines, for example it may be green if the High value is greater than the Low value, and red if the opposite is true.

In order to provide the High and Low values to the chart, the data points in the band series should implement either the [SChartData sChartXValueForKey:] method or the [SChartData sChartYValueForKey:] method on the SChartData protocol, depending on the series orientation.

The band series contains an instance of SChartBandSeriesStyle, which manages the appearance of the series.

Instance Methods

selectedStyle

Manages the appearance of the band series when it is selected.

- (SChartBandSeriesStyle *)selectedStyle

Discussion

Style settings in this object will be applied when the series is marked as selected (or a point is selected).

The default settings of the style are inherited from the chart theme. You can tweak the appearance of the series by modifying the style.

Declared In

SChartBandSeries.h

setSelectedStyle:

Sets the style object for the band series when it is selected.

- (void)setSelectedStyle:(SChartBandSeriesStyle *)selectedStyle

Parameters

selectedStyle

The new style object to use.

See Also

Declared In

SChartBandSeries.h

setStyle:

Sets the style object for the band series.

- (void)setStyle:(SChartBandSeriesStyle *)style

Parameters

style

The new style object to use for the band series.

See Also

Declared In

SChartBandSeries.h

style

Manages the appearance of the band series on the chart.

- (SChartBandSeriesStyle *)style

Discussion

The default settings of the style are inherited from the chart theme. You can tweak the appearance of the series by modifying the style.

Declared In

SChartBandSeries.h