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 |
---|---|
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:
| Gets or sets the X-axis that calculates data points’ locations by arguments. |
Gets or sets Y-axis that calculates data points’ locations by values. | |
The X-axis that manages qualitative arguments. | |
The X-axis that manages numeric arguments. | |
The X-axis that manages date-time arguments. | |
The Y-axis that manages numeric values. |