SChartStyle Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in SChartStyle.h
Availability Standard
Premium
Related samples

Overview

A look of a chart is managed by an instance of SChartTheme or one of its sub-classes. Themes contain a set of style objects, each of which are responsible for managing the look of a particular aspect of the chart.

The SChartStyle class is responsible for managing the overall look of the chart. This includes things like:

  • The background color of the chart.
  • The color and width of the chart border.
  • The background color of the chart plot area.
  • The color and width of the chart plot area border.

More information about using SChartStyle can be found in the user guide.

Properties

backgroundColor

The background color of the chart.

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

Declared In

SChartStyle.h

backgroundColorGradient

The secondary background color of the chart.

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

Discussion

This is used when the chart background has a gradient between two colors. The gradient runs from backgroundColor to backgroundColorGradient.

Declared In

SChartStyle.h

borderColor

The border color of the chart.

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

Discussion

The chart border runs around the edge of the chart canvas. This includes the plot area and the chart axes.

Declared In

SChartStyle.h

borderWidth

The width of the chart border, in points.

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

Discussion

The chart border runs around the edge of the chart canvas. This includes the plot area and the chart axes.

Declared In

SChartStyle.h

canvasBackgroundColor

The background color of the chart canvas area.

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

Discussion

The canvas area includes the chart plot area and the chart axes.

Declared In

SChartStyle.h

loadingDataIndicatorColor

The color of the indicator which is displayed when data is loaded in the background.

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

Declared In

SChartStyle.h

plotAreaBackgroundColor

The background color of the chart plot area.

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

Discussion

The plot area is the region of the chart which is bounded by the chart axes.

Declared In

SChartStyle.h

plotAreaBorderColor

The border color of the chart plot area.

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

Discussion

The plot area is the region of the chart which is bounded by the chart axes.

Declared In

SChartStyle.h

plotAreaBorderWidth

The line width for the border of the chart plot area, in points.

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

Discussion

The plot area is the region of the chart which is bounded by the axes.

Declared In

SChartStyle.h

Instance Methods

supplementStyleFromStyle:

Supplements this style object by taking styles this object doesn’t have, from the argument, style

- (void)supplementStyleFromStyle:(SChartStyle *)style

Declared In

SChartStyle.h