Skip to main content

ScaleType Enum

Contains the values used to specify the scale type for the argument and value data of data points.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public enum ScaleType

Members

Name Description
Qualitative

Identifies the Qualitative data scale. This means that data provided for the Series.Points will be treated as qualitative values, and will be shown on the axis as textual representations (e.g., A, B, and C).

Numerical

Identifies the Numerical data scale. This means that data provided for the Series.Points will be treated as numerical values, and will be shown on the axis as numbers (e.g., 100, 200, and 300). Use the AxisBase.Label‘s AxisLabel.TextPattern property to define the output format of numerical values shown on the axis.

DateTime

Identifies the DateTime data scale. The data that you provide for the Series.Points will be treated as DateTime values, and will be shown on the axis as DateTime values (e.g., January, 2003, January, 2004, and January, 2005). The axis’s DateTimeScaleOptions property allows you to specify the scale-related settings. To define the output format of DateTime values shown on the axis, use the AxisBase.Label‘s AxisLabel.TextPattern property.

TimeSpan

Identifies the TimeSpan data scale. The data that you provide for the Series.Points will be treated and shown on the axis as TimeSpan values (for example, 00:00:00, 00:00:01, 00:00:02). Note that in this case, the axis’s TimeSpanScaleOptions property allows you to specify the scale-related settings. To define the output format of TimeSpan values shown on the axis, use the AxisBase.Label‘s AxisLabel.TextPattern property.

Auto

A scale type is detected automatically based on the type of underlying data. This means that numerical data will be treated as numerical, date-time data as date-time, qualitative as qualitative values.

Note that this mode can be applied only for the Series.ArgumentScaleType property.

Remarks

The values listed by the ScaleType enumerator are used to set the Series.ArgumentScaleType and Series.ValueScaleType properties.

See Also