.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > Axis Class > Axis Constructor : Axis Constructor(String,Object,Object,Axis)
The name and label of this axis.
Units representing the values of the original axis.
Units to convert to.
The original axis whose tick labels are converted.
Axis Constructor(String,Object,Object,Axis)
Initializes a new instance of the Axis class that will convert the tick labels of the specified axis to the specified units.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal fromUnit As Object, _
   ByVal toUnits As Object, _
   ByVal axisToShadow As Axis _
)
'Usage
 
Dim name As String
Dim fromUnit As Object
Dim toUnits As Object
Dim axisToShadow As Axis
 
Dim instance As New Axis(name, fromUnit, toUnits, axisToShadow)

Parameters

name
The name and label of this axis.
fromUnit
Units representing the values of the original axis.
toUnits
Units to convert to.
axisToShadow
The original axis whose tick labels are converted.
Remarks
This instance must be added to Chart.AxisCollection. The specified axis must appear on the chart, otherwise, the new instance will have no effect when added to Chart.AxisCollection.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also