YAxis Property (Chart)
Gets or Sets the main YAxis which all series inherit by default.
Syntax
Example
//Import Drawing2D : <%@ Import Namespace="System.Drawing.Drawing2D" %> Axis yAxisObj = new Axis(); yAxisObj.Line.StartCap = LineCap.RoundAnchor; yAxisObj.Line.EndCap = LineCap.ArrowAnchor; yAxisObj.Line.Width =3; yAxisObj.Label.Text="customized yAxis"; Chart.YAxis = yAxisObj;
'Import Drawing2D : <%@ Import Namespace="System.Drawing.Drawing2D" %> Dim yAxisObj As Axis = new Axis() yAxisObj.Line.StartCap = LineCap.RoundAnchor yAxisObj.Line.EndCap = LineCap.ArrowAnchor yAxisObj.Line.Width = 3 yAxisObj.Label.Text="customized yAxis" Chart.YAxis = yAxisObj
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