NChartAxisPositionCoord Class |
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 = true;
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 = NChartAxisPositionCoordValue.Maximum;
Inheritance Hierarchy
Namespace:
NChart3D_UWP
Assembly:
NChart3D_UWP (in NChart3D_UWP.dll)
Syntax public sealed class NChartAxisPositionCoord
Public NotInheritable Class NChartAxisPositionCoord
public ref class NChartAxisPositionCoord sealed
The NChartAxisPositionCoord type exposes the following members.
Properties
| Name | Description |
---|
| HostsOnSAxis |
Flag determining if the position is calculated according to the secondary axis (true) or not (false).
|
| Value |
Value of the coordinate. The default value is 0.
this property takes effect if ValueType is set to NChartAxisPositionCoordValue.Custom only.
If some value is assigned to this property, ValueType is set to NChartAxisPositionCoordValue.Custom
automatically.
|
| ValueType |
Type of the coordinate value.
If this property is set to NChartAxisPositionCoordValue.Custom , position is calculated based on
Value. If NChartAxisPositionCoordValue.Minimum or NChartAxisPositionCoordValue.Maximum
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 is assigned to and
HostsOnSAxis.
See also NChartAxisPositionCoordValue.
|
TopMethods See Also