SChartBarColumnSeriesStyle Class Reference

Inherits from SChartSeriesStyle : NSObject
Declared in SChartBarColumnSeriesStyle.h
Availability Standard
Premium
Related samples BarChart
ColumnChart

Overview

SChartBarColumnSeriesStyle manages the look of bar and column series on a chart. It contains any properties which are common to both bar and column series.

For properties which are specific to bar series, you should use the SChartBarSeriesStyle. For properties which are specific to column series, you should use the SChartColumnSeriesStyle.

Properties

areaColor

The fill color of the area inside the bar/column if showArea is YES.

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

Declared In

SChartBarColumnSeriesStyle.h

areaColorBelowBaseline

The fill color of the area inside the bar/column if showArea is YES when the data point is below the baseline of the series.

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

Discussion

The baseline of the series is set by [SChartCartesianSeries baseline].

Declared In

SChartBarColumnSeriesStyle.h

areaColorGradient

The second fill color of the area inside the bar/column if showAreaWithGradient is YES.

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

Declared In

SChartBarColumnSeriesStyle.h

areaColorGradientBelowBaseline

The second fill color of the area inside the bar/column if showAreaWithGradient is YES when the data point is below the baseline.

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

Discussion

The baseline of the series is set by [SChartCartesianSeries baseline].

Declared In

SChartBarColumnSeriesStyle.h

barColumnSpacing

A custom spacing for the bar/column series. This is the amount of space (in data-terms) that the bar/column should take up on its corresponding axis.

@property (nonatomic, strong) NSNumber *barColumnSpacing

Discussion

Defaults to nil - i.e. no custom value.

Declared In

SChartBarColumnSeriesStyle.h

cornerRatio

The ratio used to calculate a corner radius which is applied to the corners on the tip of each bar or column. The corner radius is calculated by multiplying this corner ratio value against half the bar or column width.

@property (nonatomic, assign) CGFloat cornerRatio

Discussion

When set to 1 the tip of each bar or column is fully rounded, when set to 0 there isn’t a corner radius applied.

By default, this property is set to 0.

Declared In

SChartBarColumnSeriesStyle.h

lineColor

The color of the outline of the bar/column.

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

Declared In

SChartBarColumnSeriesStyle.h

lineColorBelowBaseline

The color of the outline of the bar/column when the data point is below the baseline.

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

Discussion

The baseline of the series is set by [SChartCartesianSeries baseline].

Declared In

SChartBarColumnSeriesStyle.h

lineWidth

The width of the outline of the bar/column, in points.

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

Declared In

SChartBarColumnSeriesStyle.h

showArea

Set this property to YES to fill the area inside the bar/column.

@property (nonatomic) BOOL showArea

Discussion

By default, this property is set to YES.

Declared In

SChartBarColumnSeriesStyle.h

showAreaWithGradient

Set this property to YES to add a gradient to the fill inside the bar/column. If the area is not filled, this property won’t have any effect.

@property (nonatomic) BOOL showAreaWithGradient

Discussion

When a gradient is applied to the fill, the color starts at areaColor, and finishes at areaColorGradient.

The gradient isn’t configurable. It runs from left to right on column series, and from top to bottom on bar series.

By default, this property is set to YES.

Declared In

SChartBarColumnSeriesStyle.h

Instance Methods

supplementStyleFromStyle:

Updates this style object using the settings from the passed-in style.

- (void)supplementStyleFromStyle:(SChartBarColumnSeriesStyle *)style

Parameters

style

The style with which to configure this style object.

Declared In

SChartBarColumnSeriesStyle.h