.netCHARTING v10.5 Documentation
Example 


YAxis Property (Chart)

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

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