New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents the X-axis in a chart, providing configuration and rendering logic for horizontal axis values. Inherits all properties and methods from AxisBase.

Definition

Constructors

C#
public ChartXAxis()

Properties

Defines the different base unit steps to be used, when the BaseUnit="Auto"

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public BaseUnitSteps AutoBaseUnitSteps { get; }

The collection specifies the crossing points of X and Y axes.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AxisCrossingPointsCollection AxisCrossingPoints { get; }

This property is used with DateTime values only and it specifies the time interval of the axis labels.

C#
public DateTimeBaseUnit BaseUnit { get; set; }
C#
public int BaseUnitStep { get; set; }

The DataField with the labels text when the chart is bound to a datasource.

C#
public string DataLabelsField { get; set; }
C#
public bool EnableBaseUnitStepAuto { get; set; }

Gets a collection of AxisItem objects that allows for specifying the text of the axis labels

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AxisItemCollection Items { get; }
Property Value:

Gets a collection of AxisItem objects that allows for specifying the text of the axis labels

Use the Items collection to programmatically control the text of the axis labels

Get/Set whether the axis categories and series points will be positioned on major ticks. When set to true, removes the empty space before and after the series. Not needed for Area series.

C#
public bool? Justified { get; set; }

This option is ignored if the series are of type "bar", "column", "boxPlot", "ohlc", "candlestick" or "waterfall". The default value is unset to preserve the default behavior of different series - it defaults to false for most series, but defaults to true for "area", "verticalArea", "rangeArea" and "verticalRangeArea".

Test

C#
public int MaxDateGroups { get; set; }

Gets or Sets the maximum value for the axis as DateTime object.

C#
public DateTime? MaxDateValue { get; set; }

This property affects the chart only when it is AxisType property is set to Date.

Gets or Sets the minimum value for the axis as DateTime object.

C#
public DateTime? MinDateValue { get; set; }

This property affects the chart only when it is AxisType property is set to Date.

Gets or Sets the starting angle of the XAxis for radial series (Radar and Polar) types

C#
public int? StartAngle { get; set; }

The property which sets the type of the axis.

C#
public AxisType Type { get; set; }

Methods

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
protected override string SerializeAxisScaling()
Returns:

string

Overrides: AxisBase.SerializeAxisScaling()

C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()