Skip to main content

AxisY.ShowZeroValue Property

Specifies whether to show the zero level on the y-axis.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(false, Handler = "ShowZeroValueChanged")]
public bool ShowZeroValue { get; set; }

Property Value

Type Description
Boolean

true to show the zero level; otherwise, false.

Remarks

The ShowZeroValueproperty allows you to skip the area that has no points between the y-axis’ zero value and the point with the minimum value on the chart.

The following images show a chart with different ShowZeroValue values:

ShowZeroValue = true ShowZeroValue = false
ShowZeroValue is enabled ShowZeroValue is disabled

The markup below hides a chart’s zero level:

<Charts:CartesianChart.AxisY>
    <Charts:AxisY ShowZeroValue="False"/>
</Charts:CartesianChart.AxisY>
See Also