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


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

Syntax

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

Example

C# Copy Code
//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;
    
Visual Basic Copy Code
'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

See Also