Skip to main content

DXChart.AxisX Property

Gets or sets the X-axis that calculates data points’ locations by arguments.

Namespace: DevExpress.Xamarin.iOS.Charts

Assembly: DevExpress.Xamarin.iOS.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

public virtual DXAxisX AxisX { get; set; }

Property Value

Type Description
DXAxisX

The DXAxisX descent class object that calculates data points’ location by arguments.

Remarks

Note that, the X-axis and the DXSeries.Data property should be compatible; otherwise, the chart does not show a series. The following table collates series data protocols with X-axis types:

Axis Type

Data Protocol Type

DXQualitativeAxisX

DXQualitativeSeriesData

DXWeightedQualitativeSeriesData

DXNumericAxisX

DXNumericSeriesData

DXWeightedNumericSeriesData

DXDateTimeAxisX

DXDateTimeSeriesData

DXWeightedDateTimeSeriesData

DXFinancialSeriesData

Important

A series’ Data object type should be compatible with the type of object assigned to this property; otherwise, the Chart does not display this series. The Chart view creates an axis that is compatible with the first series’ data class if you do not specify its AxisX property value.

Example

The Chart Control’s Axes manage the Chart’s coordinate space. All series are measured and aggregated using axes. The following example demonstrates how to customize chart axes:

this.chart.AxisX = new DXDateTimeAxisX {
    MeasureUnit = DXDateTimeMeasureUnit.Year,
    GridAlignment = DXDateTimeMeasureUnit.Year,
    GridOffset = 0,
    GridSpacing = 1,
};

this.chart.AxisY = new DXNumericAxisY {
    GridAlignment = 1.0,
    AlwaysShowZeroLevel = false,
};

The table below contains classes and properties that configure chart axes:

DXChart.AxisX

Gets or sets the X-axis that calculates data points’ locations by arguments.

DXChart.AxisY

Gets or sets Y-axis that calculates data points’ locations by values.

DXQualitativeAxisX

The X-axis that manages qualitative arguments.

DXNumericAxisX

The X-axis that manages numeric arguments.

DXDateTimeAxisX

The X-axis that manages date-time arguments.

DXNumericAxisY

The Y-axis that manages numeric values.

See Also