.netCHARTING v10.7 Documentation
Example 


XAxis Property (Chart)

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

Syntax
'Declaration
 
Public Property XAxis As Axis
'Usage
 
Dim instance As Chart
Dim value As Axis
 
instance.XAxis = value
 
value = instance.XAxis
public Axis XAxis {get; set;}
Example
//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;
'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
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