Custom axes are created with the help of the AddCustomAxis method of the NAxisCollection class. The method receives two arguments - the orientation of the new axis and its predefined position. Currently only horizontal and vertical custom axes are supported. The following code creates a vertical custom axis with FrontLeft predefined position.
C# |
Copy Code
|
---|---|
NCartesianChart chart = (NCartesianChart)chartControl.Charts[0]; NAxis axis = chart.Axes.AddCustomAxis(AxisOrientation.Vertical, AxisPredefinedPositon.FrontLeft); |
Visual Basic |
Copy Code
|
---|---|
Dim chart As NCartesianChart = chartControl.Charts(0) Dim axis As NAxis = chart.Axes.AddCustomAxis(AxisOrientation.Vertical, AxisPredefinedPositon.FrontLeft) |