SChartOHLCSeriesStyle Class Reference

Inherits from SChartSeriesStyle : NSObject
Conforms to NSCopying
Declared in SChartOHLCSeriesStyle.h
Availability Premium
Related samples FinancialChart

Overview

SChartOHLCSeriesStyle manages the appearance of an instance of SChartOHLCSeries on the chart.

Each data point in an OHLC series is visualised as a line between the high and low values, with short perpendicular bars indicating the open and close positions.

The colors used to represent each data point are different dependent on whether the data value is rising or falling. You can set the colors for both cases in this class. A gradient is applied to the colors in each data point, going from top to bottom if the series is horizontal, and from left to right if the series is vertical. See risingColor, fallingColor, risingColorGradient or fallingColorGradient for more information.

Properties

armWidth

The width of the arms of the OHLC point, in points.

@property (nonatomic, strong, nullable) NSNumber *armWidth

Declared In

SChartOHLCSeriesStyle.h

fallingColor

The color of the body of the OHLC point if the point is falling.

@property (nonatomic, strong, nullable) UIColor *fallingColor

Declared In

SChartOHLCSeriesStyle.h

fallingColorGradient

The gradient color of the body of the OHLC point if the point is falling.

@property (nonatomic, strong, nullable) UIColor *fallingColorGradient

Declared In

SChartOHLCSeriesStyle.h

risingColor

The color of the body of the OHLC point if the point is rising.

@property (nonatomic, strong, nullable) UIColor *risingColor

Declared In

SChartOHLCSeriesStyle.h

risingColorGradient

The gradient color of the body of the OHLC point if the point is rising.

@property (nonatomic, strong, nullable) UIColor *risingColorGradient

Declared In

SChartOHLCSeriesStyle.h

trunkWidth

The width of the trunk of the OHLC point, in points.

@property (nonatomic, strong, nullable) NSNumber *trunkWidth

Declared In

SChartOHLCSeriesStyle.h

Instance Methods

supplementStyleFromStyle:

Updates this style object using the specified style.

- (void)supplementStyleFromStyle:(SChartOHLCSeriesStyle *)style

Parameters

style

The new style with which to update this style object.

Declared In

SChartOHLCSeriesStyle.h