ORKGraphChartView Class Reference

Inherits from UIView
Declared in ORKGraphChartView.h

The ORKGraphChartView class is an abstract class which holds properties and methods common to concrete subclasseses.

You should not instantiate this class directly; use one of the subclasses instead. The concrete subclasses are ORKLineGraphChartView, ORKDiscreteGraphChartView, and ORKBarGraphChartView.

  minimumValue

The minimum value of the y-axis.

@property (nonatomic, readonly) double minimumValue

Discussion

You can provide this value to an instance of ORKGraphChartView by implementing the optional minimumValueForGraphChartView: method of the ORKGraphChartViewDataSource protocol.

If minimumValueForGraphChartView: is not implemented, the minimum value is assigned to the smallest value of the minimumValue property of all ORKValueRange instances returned by the graph chart view data source.

Declared In

ORKGraphChartView.h

  maximumValue

The maximum value of the y-axis.

@property (nonatomic, readonly) double maximumValue

Discussion

You can provide this value instance of ORKGraphChartView by implementing the optional maximumValueForGraphChartView: method of the ORKGraphChartViewDataSource protocol.

If maximumValueForGraphChartView: is not implemented, the maximum value is assigned to the largest value of the maximumValue property of all ORKValueRange instances returned by the graph chart view data source.

Declared In

ORKGraphChartView.h

  showsHorizontalReferenceLines

A Boolean value indicating whether the graph chart view should draw horizontal reference lines.

@property (nonatomic) IBInspectable BOOL showsHorizontalReferenceLines

Discussion

The default value of this property is NO.

Declared In

ORKGraphChartView.h

  showsVerticalReferenceLines

A Boolean value indicating whether the graph chart view should draw vertical reference lines.

@property (nonatomic) IBInspectable BOOL showsVerticalReferenceLines

Discussion

The default value of this property is NO.

Declared In

ORKGraphChartView.h

  delegate

The delegate is notified of pan gesture events occuring within the bounds of the graph chart view.

@property (nonatomic, weak, nullable) id<ORKGraphChartViewDelegate> delegate

Discussion

See the ORKGraphChartViewDelegate protocol.

Declared In

ORKGraphChartView.h

  dataSource

The data source responsible for providing the data required to populate the graph chart view.

@property (nonatomic, weak) id<ORKGraphChartViewDataSource> dataSource

Discussion

See the ORKGraphChartViewDataSource protocol.

Declared In

ORKGraphChartView.h

  axisColor

The color of the axes drawn by the graph chart view.

@property (nonatomic, strong, null_resettable) IBInspectable UIColor *axisColor

Discussion

The default value for this property is a light gray color. Setting this property to nil resets it to its default value.

Declared In

ORKGraphChartView.h

  verticalAxisTitleColor

The color of the vertical axis titles.

@property (nonatomic, strong, null_resettable) IBInspectable UIColor *verticalAxisTitleColor

Discussion

The default value for this property is a light gray color. Setting this property to nil resets it to its default value.

Note: The horizontal axis titles use the current tintColor.

Declared In

ORKGraphChartView.h

  referenceLineColor

The color of the reference lines.

@property (nonatomic, strong, null_resettable) IBInspectable UIColor *referenceLineColor

Discussion

The default value for this property is a light gray color. Setting this property to nil resets it to its default value.

Declared In

ORKGraphChartView.h

  scrubberThumbColor

The background color of the thumb on the scrubber line.

@property (nonatomic, strong, null_resettable) IBInspectable UIColor *scrubberThumbColor

Discussion

The default value for this property is a white color. Setting this property to nil resets it to its default value.

Declared In

ORKGraphChartView.h

  scrubberLineColor

The color of the scrubber line.

@property (nonatomic, strong, null_resettable) IBInspectable UIColor *scrubberLineColor

Discussion

The default value for this property is a gray color. Setting this property to nil resets it to its default value.

Declared In

ORKGraphChartView.h

  noDataText

The string that is displayed if no data points are provided by the data source.

@property (nonatomic, copy, null_resettable) IBInspectable NSString *noDataText

Discussion

The default value for this property is an appropriate message string. Setting this property to nil resets it to its default value.

Declared In

ORKGraphChartView.h

  maximumValueImage

An image to be optionally displayed in place of the maximum value label on the y-axis.

@property (nonatomic, strong, nullable) IBInspectable UIImage *maximumValueImage

Discussion

The default value for this property is nil.

Declared In

ORKGraphChartView.h

  minimumValueImage

An image to be optionally displayed in place of the minimum value label on the y-axis.

@property (nonatomic, strong, nullable) IBInspectable UIImage *minimumValueImage

Discussion

The default value for this property is nil.

Declared In

ORKGraphChartView.h

  longPressGestureRecognizer

The long press gesture recognizer that is used for scrubbing by the graph chart view. You can use this property to prioritize your own gesture recognizers.

@property (nonatomic, strong, readonly) UILongPressGestureRecognizer *longPressGestureRecognizer

Discussion

This object is instatiated and added to the view when it is created.

Declared In

ORKGraphChartView.h

  panGestureRecognizer

The gesture recognizer that is used for scrubbing by the graph chart view.

@property (nonatomic, strong, readonly) UIPanGestureRecognizer *panGestureRecognizer

Discussion

This object is instatiated and added to the view when it is created.

Declared In

ORKGraphChartView.h

  decimalPlaces

The number of decimal places that is used on the y-axis and scrubber value labels.

@property (nonatomic) NSUInteger decimalPlaces

Discussion

The default value of this property is 0.

Declared In

ORKGraphChartView.h

  yAxisLabelFactors

An array of factors for adding Y-Axis labels

@property (nonatomic) NSArray<NSNumber*> *yAxisLabelFactors

Declared In

ORKGraphChartView.h

– animateWithDuration:

Animates the graph when it first displays on the screen.

- (void)animateWithDuration:(NSTimeInterval)animationDuration

Parameters

animationDuration

The duration of the appearing animation.

Discussion

You can optionally call this method from the viewWillAppear: implementation of the view controller that owns the graph chart view.

Declared In

ORKGraphChartView.h

– reloadData

Reloads the plotted data.

- (void)reloadData

Discussion

Call this method to reload the data and re-plot the graph. You should call it if the data provided by the dataSource changes.

Declared In

ORKGraphChartView.h