Version

ZeroAligned Property (DataAppearance)

Gets/sets whether the primary numeric axis should align itself with the origin at zero.
Syntax
'Declaration
 
Public Property ZeroAligned As Boolean
public bool ZeroAligned {get; set;}

Property Value

True when the primary axis is zero-aligned, False otherwise.
Remarks

When zero alignment is in effect, the chart will be rendered with its primary, linear, numeric axis range starting at zero, as opposed to the minimum data value present in the DataSource.

This property does not apply to non-numeric (for instance, axes based on dates or discrete item labels) or non-continuous axes (for instance, logarithmic axes for which log 0 is mathematically undefined).

Developers can use this feature when they want their minimum data values to display and showing the axis at the origin is relevant. When there is little variation between data values (i.e., the difference between the maximum and minimum values being charted is small compared to the minimum value's difference from the zero-axis), it is a better choice to adjust the RangeAxisType to Custom on the AxisAppearance and set the RangeMin and RangeMax properties instead of using zero-alignment.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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