dotnetCHARTING Send comments on this topic.
XAxis Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : XAxis Property


Gets or Sets the main XAxis which all series inherit by default.

Syntax

Visual Basic (Declaration)  
Public Property XAxis As Axis
Visual Basic (Usage) Copy Code
Dim instance As Chart
Dim value As Axis
 
instance.XAxis = value
 
value = instance.XAxis
C#  
public Axis XAxis {get; set;}

Example

C# Copy Code
//Import Drawing2D : <%@ Import Namespace="System.Drawing.Drawing2D" %>
Axis xAxisObj = new Axis();
xAxisObj.Line.StartCap = LineCap.RoundAnchor;    
xAxisObj.Line.EndCap = LineCap.ArrowAnchor;
xAxisObj.Line.Width =3;
xAxisObj.Label.Text=
"customized xAxis";
Chart.XAxis = xAxisObj;
    
Visual Basic Copy Code
'Import Drawing2D : <%@ Import Namespace="System.Drawing.Drawing2D" %>
 Dim xAxisObj As Axis = new Axis()
xAxisObj.Line.StartCap = LineCap.RoundAnchor
xAxisObj.Line.EndCap = LineCap.ArrowAnchor
xAxisObj.Line.Width = 3
xAxisObj.Label.Text="customized xAxis"
Chart.XAxis = xAxisObj

See Also