ORKGraphChartView Class Reference

Inherits from UIView
Declared in ORKGraphChartView.h

The ORKGraphChartView class is an abstract class. It holds properties and methods common to subclasses such as ORKLineGraphChartView and ORKDiscreteGraphChartView. You should not instantiate this class directly; use one of the subclasses instead.

  minimumValue

The minimum value of the y-axis.

@property (nonatomic, readonly) CGFloat 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 ORKRangedPoint instances returned by the graph chart view data source.

Declared In

ORKGraphChartView.h

  maximumValue

The maximum value of the y-axis.

@property (nonatomic, readonly) CGFloat 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 ORKRangedPoint 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) UIImage *minimumValueImage

Discussion

The default value for this property is nil.

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

– 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