XAxis Property (Chart)
Gets or Sets the main XAxis which all series inherit by default.
Syntax
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