Skip to main content

Axis Class

The base class for all axes present in either the XYDiagram2D or XYDiagram3D classes.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public abstract class Axis :
    AxisBase,
    ILogarithmic

The following members return Axis objects:

Remarks

The Axis class introduces the general functionality for all axes derived from it.

Axes may feature different scale types, whose availability depends on whether the axis displays arguments or values, and which can be specified via the Series.ArgumentScaleType and Series.ValueScaleType properties, respectively.

An Axis’ visible range can be delimited by two values, each of which can be expressed in two measurement units - by a value appropriate to the current axis scale type, or by an internal double value. These options can be accessed via the Axis.Range property, and when they are set to default values, the axis range is calculated automatically. To manually adjust it, specify the AxisRange.MinValue and AxisRange.MaxValue (or, AxisRange.MinValueInternal and AxisRange.MaxValueInternal) properties.

Axis label options are accessed via the AxisBase.Label property. Among them, the label’s text options are specified via the AxisBase.NumericOptions (if the current axis scale type is ScaleType.Numerical), or via the Axis.DateTimeOptions (if the scale type is ScaleType.DateTime).

Axis grid lines can be customized via the AxisBase.MinorCount, Axis.DateTimeGridAlignment, AxisBase.GridLinesBrush, AxisBase.GridLinesLineStyle, AxisBase.GridLinesMinorBrush, AxisBase.GridLinesMinorLineStyle, AxisBase.GridLinesMinorVisible and AxisBase.GridLinesVisible properties.

And, axis interlacing options are accessed via the AxisBase.Interlaced and AxisBase.InterlacedBrush property.

See Also