Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Range.SetAuto() Method

In This Article

Enables automatic calculation of minimum and maximum values of the axis range.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public void SetAuto()

#Remarks

By default, minimum and maximum limits of the Range are calculated automatically, based upon the underlying data (namely, arguments or data values which depend upon the axis’s type - X or Y respectively) in all the series being drawn on the chart control’s diagram. In addition, it is possible to explicitly set these limits by modifying the Range.MinValue and Range.MaxValue properties either at design time, programmatically or in XAML. Then, if you need to ignore the previously specified minimum and maximum limits of the Range, enable the automatic limits calculation by calling the SetAuto method.

See Also