CFXGridLine Class Reference

Inherits from
Conforms to
Framework
Availability
Available in iOS 5.0 and later.
Companion guide
Declared in
ChartFX.h

Overview

GridLines are used to place lines across the Axes, at the major and minor intervals.

Mayor GridLines will show the lines at the step. Minor Gridlines will show line at the MinorStep.

Properties

tickMark

Gets or sets the style for the tick marks of an GridLine object.

@property(nonatomic) CFXTickMark tickMark
Discussion

The tick mark is not the gridline that crosses the entire chart, it is just a reference line that appears on every tick of the minor unit of the axis. If you want to display a gridline that crosses the chart, please refer to the grids property.

The major unit is controlled by the step property, the minor unit is controlled by the minorStep property.

Declared In
ChartFX.h

visible

Gets or sets a value indicating whether the grid line for the selected Gridline will be visible.

@property(nonatomic) BOOL visible
Discussion

By default, this property is set to YES. You will need to configure the grid line's Visible property to YES in order to see the object in the chart.

Declared In
ChartFX.h

Constants

CFXTickMark

Define the different ways of displaying tick marks at the major and minor gridlines on the selected axis.

typedef enum {
   CFXNone,
   CFXOutside,
   CFXInside,
   CFXCross
} CFXTickMark;
Constants
CFXNone
Hides tick marks for the selected axis.
CFXOutside
Displays tick marks on the outside of the selected axis.
CFXInside
Displays tick marks on the inside of the selected axis.
CFXCross
Displays tick marks that cross inside and outside the selected axis.
Declared In
chartfx.h