NChartAxisPositionCoord Class Reference
Inherits from | NSObject |
---|---|
Declared in | NChartAxisPositionCoord.h |
Overview
The NChartAxisPositionCoord class provides methods to control the position of the chart axis.
Each Cartesian system axis has properties for X, Y and Z coordinates, but for every particular axis only two of them
are meaningful. For example, for the X-Axis only Y and Z take effect, for Y-Axis only X and Z and so on. Each coordinate
is associated with particular direction: X-coordinate is tied to the horizontal direction, Y to the vertical and
Z to the depth. According to valueType, value and hostsOnSAxis of the coordinate, actual position in the
corresponding direction is determined.
For example, to place Y-Axis so, that it intersects X-Axis in the value 10, use the following code:
m_view.chart.cartesianSystem.yAxis.positionX.value = 10.0;
If you need Y-Axis to intersect SX-Axis in the value 10 instead, add the following:
m_view.chart.cartesianSystem.yAxis.positionX.hostsOnSAxis = YES;
The next code line added to the previous settings will make Y-Axis to intersect SX-Axis in its maximal value:
m_view.chart.cartesianSystem.yAxis.positionX.valueType = NChartAxisPositionCoordValueMaximum;
valueType
Type of the coordinate value.
@property (nonatomic, assign) NChartAxisPositionCoordValue valueType
Discussion
If this property is set to NChartAxisPositionCoordValueCustom
, position is calculated based on
value. If NChartAxisPositionCoordValueMinimum
or NChartAxisPositionCoordValueMaximum
is set, position is calculated based on the corresponding axis' minimum or maximum respectively. The axis for the
coordinate is chosen according to the actual property NChartAxisPositionCoord
is assigned to and
hostsOnSAxis.
See Also
Declared In
NChartAxisPositionCoord.h
value
Value of the coordinate. The default value is 0.
@property (nonatomic, assign) double value
Discussion
Declared In
NChartAxisPositionCoord.h
hostsOnSAxis
Flag determining if the position is calculated according to the secondary axis (YES) or not (NO).
@property (nonatomic, assign) BOOL hostsOnSAxis
Declared In
NChartAxisPositionCoord.h