OCKBarChart Class Reference

Inherits from OCKChart : OCKInsightItem : NSObject
Declared in OCKBarChart.h

The OCKBarChart represents a vertical grouped bar chart.

– initWithTitle:text:tintColor:axisTitles:axisSubtitles:dataSeries:minimumScaleRangeValue:maximumScaleRangeValue:

Returns an initialzed bar chart using the specified values. The number of categories is determined by the array with the largest count.

- (instancetype)initWithTitle:(nullable NSString *)title text:(nullable NSString *)text tintColor:(nullable UIColor *)tintColor axisTitles:(nullable NSArray<NSString*> *)axisTitles axisSubtitles:(nullable NSArray<NSString*> *)axisSubtitles dataSeries:(NSArray<OCKBarSeries*> *)dataSeries minimumScaleRangeValue:(nullable NSNumber *)minimumScaleRangeValue maximumScaleRangeValue:(nullable NSNumber *)maximumScaleRangeValue

Parameters

title

The title for the chart (see OCKInsightItem).

text

The description text for the chart (see OCKInsightItem).

tintColor

The tint color for the chart (see OCKInsightItem).

axisTitles

An array of strings representing the y-axis title for each category.

axisSubtitles

An array of strings representing the y-axis subtitle for each category.

dataSeries

An array of OCKBarSeries objects.

minimumScaleRangeValue

The minimum value of scale range.

maximumScaleRangeValue

The maximum value of scale range.

Return Value

An initialzed bar chart object.

Declared In

OCKBarChart.h

– initWithTitle:text:tintColor:axisTitles:axisSubtitles:dataSeries:

Returns an initialzed bar chart using the specified values. The number of categories is determined by the array with the largest count.

- (instancetype)initWithTitle:(nullable NSString *)title text:(nullable NSString *)text tintColor:(nullable UIColor *)tintColor axisTitles:(nullable NSArray<NSString*> *)axisTitles axisSubtitles:(nullable NSArray<NSString*> *)axisSubtitles dataSeries:(NSArray<OCKBarSeries*> *)dataSeries

Parameters

title

The title for the chart (see OCKInsightItem).

text

The description text for the chart (see OCKInsightItem).

tintColor

The tint color for the chart (see OCKInsightItem).

axisTitles

An array of strings representing the y-axis title for each category.

axisSubtitles

An array of strings representing the y-axis subtitle for each category.

dataSeries

An array of OCKBarSeries objects.

Return Value

An initialzed bar chart object.

Declared In

OCKBarChart.h

  axisTitles

An array of strings representing the axis titles.

@property (nonatomic, copy, readonly, nullable) NSArray<NSString*> *axisTitles

Declared In

OCKBarChart.h

  axisSubtitles

An array of strings representing the axis subtitles.

@property (nonatomic, copy, readonly, nullable) NSArray<NSString*> *axisSubtitles

Declared In

OCKBarChart.h

  dataSeries

An array of data series.

@property (nonatomic, copy, readonly) NSArray<OCKBarSeries*> *dataSeries

Declared In

OCKBarChart.h

  maximumScaleRangeValue

Maximum value of scale range. If this value is not specified, the maximum value is determined automatically.

@property (nonatomic, readonly, nullable) NSNumber *maximumScaleRangeValue

Discussion

The specified maximum value will be ignored if it is less than the maximum value of the bar values.

Declared In

OCKBarChart.h

  minimumScaleRangeValue

Minimum value of scale range. If this value is not specified, the minimum value is determined automatically.

@property (nonatomic, readonly, nullable) NSNumber *minimumScaleRangeValue

Discussion

The specified minimum value will be ignored if it is greater than the minimum value of the bar values.

Declared In

OCKBarChart.h