OCKBarSeries Class Reference

Inherits from NSObject
Conforms to NSCopying
NSSecureCoding
Declared in OCKBarSeries.h

The OCKBarSeries class represents a single data set in OCKBarChart.

– initWithTitle:values:valueLabels:tintColor:

Returns an initialzed bar series using the specified values.

- (instancetype)initWithTitle:(NSString *)title values:(NSArray<NSNumber*> *)values valueLabels:(NSArray<NSString*> *)valueLabels tintColor:(nullable UIColor *)tintColor

Parameters

title

The title for the bar series.

values

An array of data values.

valueLabels

An array of strings representing the data values.

tintColor

The bar series tint color.

Return Value

An initialzed bar series object.

Declared In

OCKBarSeries.h

  title

The title of the bar series.

@property (nonatomic, copy, readonly) NSString *title

Declared In

OCKBarSeries.h

  values

The values of the bar series.

@property (nonatomic, copy, readonly) NSArray<NSNumber*> *values

Declared In

OCKBarSeries.h

  valueLabels

The string representation of the values.

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

Declared In

OCKBarSeries.h

  tintColor

The tint color of the bar series.

@property (nonatomic, readonly, nullable) UIColor *tintColor

Discussion

If the value is not specified, the app’s tint color is used.

Declared In

OCKBarSeries.h