TKChartCategoryAxis Class Reference
Inherits from | TKChartAxis : NSObject |
Declared in | TKChartCategoryAxis.h |
Overview
The category axis of TKChart.
TKChart uses Categorical axes to plot data that contains categorical values. The axis is valid only in the context of Cartesian series. It also introduces several important properties:
majorTickInterval - Defines an interval among major axis ticks
minorTickInterval - Defines an interval among minor axis ticks
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
Tasks
-
majorTickInterval
property -
minorTickInterval
property -
baseline
property -
offset
property -
categories
property -
– setPlotMode:
-
– initWithCategories:
-
– initWithCategories:andRange:
-
– addCategory:
-
– addCategoriesFromArray:
-
– removeCategory:
-
– removeCategoriesInArray:
-
– removeAllCategories
Properties
baseline
The value to which the series data is aligned to.
@property (nonatomic, assign) NSInteger baseline
Declared In
TKChartCategoryAxis.h
categories
The axis categories.
@property (nonatomic, strong, readonly) NSArray *categories
Return Value
The array of associated categories.
Declared In
TKChartCategoryAxis.h
majorTickInterval
The major tick mark frequency.
@property (nonatomic, strong) NSNumber *majorTickInterval
Declared In
TKChartCategoryAxis.h
Instance Methods
addCategoriesFromArray:
Adds an array of categories to the axis.
- (void)addCategoriesFromArray:(NSArray *__nonnull)categories
Parameters
- categories
The categories' array that should be added to the axis.
Declared In
TKChartCategoryAxis.h
addCategory:
Adds a category to the axis.
- (void)addCategory:(id __nonnull)category
Parameters
- category
The category that should be added.
Declared In
TKChartCategoryAxis.h
initWithCategories:
Initializes the category axis from an array of categories.
- (instancetype __nonnull)initWithCategories:(NSArray *__nonnull)categories
Parameters
- categories
The array of categories.
Declared In
TKChartCategoryAxis.h
initWithCategories:andRange:
Initializes the category axis from an array of categories and range.
- (instancetype __nonnull)initWithCategories:(NSArray *__nonnull)categories andRange:(TKRange *__nonnull)range
Declared In
TKChartCategoryAxis.h
removeAllCategories
Removes all categories.
- (void)removeAllCategories
Declared In
TKChartCategoryAxis.h
removeCategoriesInArray:
Removes an array of categories from the axis.
- (void)removeCategoriesInArray:(NSArray *__nonnull)categories
Parameters
- categories
The array of category that should be removed from the axis.
Declared In
TKChartCategoryAxis.h