TKChartAxisLabelStyle Class Reference
Inherits from | TKChartLabelStyle : TKStyleNode : NSObject |
Declared in | TKChartAxisLabelStyle.h |
Tasks
-
textOffset
property -
textAlignment
property -
fitMode
property -
minLabelClippingMode
property -
maxLabelClippingMode
property -
clipAxisLabels
property -
firstLabelTextOffset
property -
lastLabelTextOffset
property -
firstLabelTextAlignment
property -
lastLabelTextAlignment
property -
rotationAngle
property
Properties
clipAxisLabels
Determines whether to clip axis labels in plot area.
@property (nonatomic) BOOL clipAxisLabels
Declared In
TKChartAxisLabelStyle.h
firstLabelTextAlignment
The text alignment of the first label.
@property (nonatomic, assign) TKChartAxisLabelAlignment firstLabelTextAlignment
See Also
@property textAlignment for text alignment modes
Declared In
TKChartAxisLabelStyle.h
firstLabelTextOffset
The text offset of the first label.
@property (nonatomic, assign) UIOffset firstLabelTextOffset
Declared In
TKChartAxisLabelStyle.h
fitMode
The label fit mode.
@property (nonatomic, assign) TKChartAxisLabelFitMode fitMode
Discussion
The axis label fit modes are defined as follows:
typedef enum {
TKChartAxisLabelFitModeNone, // Does not attempt to fit the axis labels.
TKChartAxisLabelFitModeMultiline, // Arranges the axis labels on multiple lines, so that there are no two neighbour labels on the same line.
TKChartAxisLabelFitModeRotate, // Arranges the axis labels, so that they are rotated around their top left corner.
} TKChartAxisLabelFitMode;
Declared In
TKChartAxisLabelStyle.h
lastLabelTextAlignment
The text alignment of the last label.
@property (nonatomic) TKChartAxisLabelAlignment lastLabelTextAlignment
See Also
@property textAlignment for text alignment modes
Declared In
TKChartAxisLabelStyle.h
lastLabelTextOffset
The text offset of the last label.
@property (nonatomic) UIOffset lastLabelTextOffset
Declared In
TKChartAxisLabelStyle.h
maxLabelClippingMode
The clipping mode of the label positioned at the highest position in the axis.
@property (nonatomic, assign) TKChartAxisClippingMode maxLabelClippingMode
See Also
@property minLabelClippingMode for clipping modes
Declared In
TKChartAxisLabelStyle.h
minLabelClippingMode
The clipping mode of the label positioned at the lowest position in the axis.
@property (nonatomic, assign) TKChartAxisClippingMode minLabelClippingMode
Discussion
The clipping modes are defined as follows:
typedef enum {
TKChartAxisClippingModeVisible, // All ticks/labes are visible.
TKChartAxisClippingModeHidden, // All ticks/labes are hidden.
} TKChartAxisClippingMode;
Declared In
TKChartAxisLabelStyle.h
rotationAngle
The label’s rotation angle.
@property (nonatomic) CGFloat rotationAngle
Declared In
TKChartAxisLabelStyle.h
textAlignment
The label alignment.
@property (nonatomic, assign) TKChartAxisLabelAlignment textAlignment
Discussion
The axis label alignments are defined as follows:
typedef enum {
TKChartAxisLabelAlignmentLeft = 1 << 0, // Aligns all labels with the left of the axis.
TKChartAxisLabelAlignmentRight = 1 << 1, // Aligns all labels with the right of the axis.
TKChartAxisLabelAlignmentTop = 1 << 2, // Aligns all labels with the top of the axis.
TKChartAxisLabelAlignmentBottom = 1 << 3, // Aligns all labels with the bottom of the axis.
TKChartAxisLabelAlignmentHorizontalCenter = 1 << 4, // Aligns all labels with the bottom of the axis.
TKChartAxisLabelAlignmentVerticalCenter = 1 << 5, // Aligns all labels with the center of the axis.
} TKChartAxisLabelAlignment;
Declared In
TKChartAxisLabelStyle.h