ORKGraphChartView Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | ORKGraphChartView.h ORKGraphChartView.m |
Overview
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 minimumValueDiscussion
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 maximumValueDiscussion
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 showsHorizontalReferenceLinesDiscussion
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 showsVerticalReferenceLinesDiscussion
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> delegateDiscussion
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> dataSourceDiscussion
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 *axisColorDiscussion
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 *verticalAxisTitleColorDiscussion
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 *referenceLineColorDiscussion
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 *scrubberThumbColorDiscussion
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 *scrubberLineColorDiscussion
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 *noDataTextDiscussion
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 *maximumValueImageDiscussion
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 *minimumValueImageDiscussion
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 *longPressGestureRecognizerDiscussion
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 *panGestureRecognizerDiscussion
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 decimalPlacesDiscussion
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*> *yAxisLabelFactorsDeclared In
ORKGraphChartView.h
– animateWithDuration:
Animates the graph when it first displays on the screen.
- (void)animateWithDuration:(NSTimeInterval)animationDurationParameters
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)reloadDataDiscussion
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