ORKValueStack Class Reference

Inherits from NSObject
Conforms to ORKValueCollectionType
Declared in ORKChartTypes.h

The ORKValueStack class represents an arbitrary list of values of the double type. It can be used in graph chart plots to draw stacked values.

– init

Returns an empty value stack.

- (instancetype)init

Return Value

An empty value stack object.

Declared In

ORKChartTypes.h

– initWithStackedValues:

Returns a value stack initialized with the passed NSNumber array.

- (instancetype)initWithStackedValues:(NSArray<NSNumber*> *)stackedValues

Parameters

stackedValues

An array containing NSNumber objects.

Return Value

A value stack object initialized with the passed NSNumber values.

Declared In

ORKChartTypes.h

  stackedValues

An array of NSNumber objects, each one representing a stacked double value.

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

Declared In

ORKChartTypes.h

  totalValue

The total sum of the stacked double values

@property (nonatomic) double totalValue

Declared In

ORKChartTypes.h