Use the AlwaysShowZeroLevel property to control whether the zero level should always be visible when the y-axis range is calculated automatically (the Range.Auto property is set to true). The Chart Control calculates a new optimal minimum value for the y-axis when AlwaysShowZeroLevel is disabled. The AlwaysShowZeroLevel property value is ignored if the Range.Auto property is set to false.
Note that you cannot enable the AlwaysShowZeroLevel property for a y-axis of values.
The following images demonstrate the AlwaysShowZeroLevel property in action:
AlwaysShowZeroLevel = false |
AlwaysShowZeroLevel = true |
 |
 |
C# |
XYDiagram xyDiagram { get { return chartControl1.Diagram as XYDiagram; } }
xyDiagram.AxisY.WholeRange.AlwaysShowZeroLevel = false;
|
VB |
Private ReadOnly Property xyDiagram As XYDiagram
Get
Return CType(chartControl1.Diagram,XYDiagram)
End Get
End Property
xyDiagram.AxisY.WholeRange.AlwaysShowZeroLevel = false
|
Refer to Visual Ranges and Whole Ranges for more information about axis ranges.