IGCategoryDateTimeXAxis Class Reference

Inherits from IGCategoryAxisBase : IGAxis : NSObject
Declared in Axis.h

Overview

IGCategoryDateTimeXAxis is a horizontal axis used to display date labels. It is commonly used with line and area series, where the data contains dates. This axis is similar to IGCategoryXAxis. The main difference is that categories do not have to be evenly spaced.

IGCategoryDateTimeXAxis contains vertical major and minor grid lines. Major grid lines are placed in the middle of each category, while minor grid lines are not displayed.

Axis labels can be placed in one of the four locations: outside below the plotting area, inside the plotting area below the axis line, inside the plotting area above the axis line, and outside above the plotting area. It’s common to set crossingAxis and crossingValue when setting labelsLocation to an inside value.

CrossingAxis and crossingValue allow the axis to intersect the NumericYAxis at a specific value.

  actualMinimumValue

A date value indicating the minimum visible date on the axis. (read-only)

@property (nonatomic, readonly) NSDate *actualMinimumValue

Discussion

This property returns the smallest date value on the axis.

Declared In

Axis.h

  actualMaximumValue

A date value indicating the maximum visible date on the axis. (read-only)

@property (nonatomic, readonly) NSDate *actualMaximumValue

Discussion

This property returns the largest date value on the axis.

Declared In

Axis.h

  labelAlignment

An enumeration value that specifies the label alignment.

@property (nonatomic) IGVerticalAlign labelAlignment

Discussion

This property is used to set the alignment of the axis labels. The labels can be top, center, or bottom aligned.

Declared In

Axis.h

  labelOrientationAngle

Angle of rotation (in degrees) used by the axis labels.

@property (nonatomic) CGFloat labelOrientationAngle

Declared In

Axis.h

  minimum

A date value that determines the minimum value on the axis.

@property (nonatomic, retain, nullable) NSDate *minimum

Declared In

Axis.h

  maximum

A date value that determines the maximum value on the axis.

@property (nonatomic, retain, nullable) NSDate *maximum

Declared In

Axis.h

  visibleMinimumValue

Returns the currently visible minimum axis value.

@property (nonatomic, readonly) NSDate *visibleMinimumValue

Declared In

Axis.h

  visibleMaximumValue

Returns the currently visible maximum axis value.

@property (nonatomic, readonly) NSDate *visibleMaximumValue

Declared In

Axis.h

  interval

A numeric value that determines the axis interval.

@property (nonatomic) NSTimeInterval interval

Discussion

The axis interval determines the values and the frequency of axis labels.

Declared In

Axis.h

  displayType

An enumeration value that determines the display type of the axis.

@property (nonatomic) IGTimeAxisDisplayType displayType

Discussion

When set to IGTimeAxisDisplayTypeContinuous (default), the axis will be evenly divided for axis labels and the interval between a pair of adjacent labels will be the same through out the axis.

When set to IGTimeAxisDisplayTypeDiscreet, the labels will be placed at the locations of data points. The interval between pairs of points will likely vary.

Declared In

Axis.h