Inherits from TKChartAxis : NSObject
Declared in TKChartDateTimeCategoryAxis.h

Overview

The date time category axis of TKChart.

TKChart uses Categorical axes to plot discontinuous dates as categorical values. The axis is valid only in the context of Cartesian series. It also introduces several important properties:

  • dateComponent - Defines the time component that is used when creating date categories.

  • baseline - Contains a value, which defines how the series data should be aligned to. (For example: The TKChartBarSeries might render its bars up and down side depending on wether its value is greater or less than the baseline value.)

  • offset - Determines a axis value where the axis is crossed with another axis

Properties

baseline

The value to which the series data is aligned to.

@property (nonatomic, strong) NSDate *baseline

Declared In

TKChartDateTimeCategoryAxis.h

categories

The axis categories.

@property (nonatomic, strong, readonly) NSArray *categories

Return Value

The array of associated categories.

Declared In

TKChartDateTimeCategoryAxis.h

dateComponent

Defines the time component that is used when creating date categories.

@property (nonatomic) NSCalendarUnit dateComponent

Declared In

TKChartDateTimeCategoryAxis.h

majorTickInterval

The major tick mark frequency.

@property (nonatomic, readonly) NSUInteger majorTickInterval

Declared In

TKChartDateTimeCategoryAxis.h

minorTickInterval

The minor tick mark frequency.

@property (nonatomic, strong) NSNumber *minorTickInterval

Declared In

TKChartDateTimeCategoryAxis.h

offset

The value where the axis will be crossed by the other.

@property (nonatomic, assign) NSDate *offset

Declared In

TKChartDateTimeCategoryAxis.h

Instance Methods

initWithMinimumDate:andMaximumDate:

Initializes a new axis with minimum and maximum date.

- (id)initWithMinimumDate:(NSDate *)minDate andMaximumDate:(NSDate *)maxDate

Parameters

minDate

The minimum date that specifies the start of the range.

maxDate

The maximum date that specifies the end of the rangee.

Declared In

TKChartDateTimeCategoryAxis.h

removeAllCategories

Removes all categories.

- (void)removeAllCategories

Declared In

TKChartDateTimeCategoryAxis.h

setPlotMode:

The plot mode of the axis.

- (void)setPlotMode:(TKChartAxisPlotMode)plotMode

Parameters

plotMode

The plot mode.

Declared In

TKChartDateTimeCategoryAxis.h