New to Telerik ReportingStart a free 30-day trial

Represents the X Axis.

Definition

Namespace:Telerik.Reporting.Charting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ChartXAxis : ChartAxis, IChartingStateManagedItem, IChartingStateManager, IOrdering

Inheritance: objectStateManagedObjectRenderedObjectChartAxisChartXAxis

Implements: IChartingStateManagedItemIChartingStateManagerIOrdering

Inherited Members ChartAxis.chartAxisAppearanceChartAxis.chartAxisLabelChartAxis.chartAxisItemsChartAxis.chartAxisParentChartAxis.chartAxisRealIsZeroBasedChartAxis.chartAxisMinItemValueChartAxis.chartAxisMaxItemValueChartAxis.chartAxisMinAxisValueChartAxis.chartAxisMaxAxisValueChartAxis.chartAxisPointStartChartAxis.chartAxisPointEndChartAxis.pixelsPerValueChartAxis.zeroCoordChartAxis.TrackViewState()ChartAxis.LoadViewState(object)ChartAxis.SaveViewState()ChartAxis.GetDistance(PointF, PointF)ChartAxis.SetMinValue(double)ChartAxis.ShouldSerializeMinValue()ChartAxis.ResetMinValue()ChartAxis.ShouldSerializeMaxValue()ChartAxis.ResetMaxValue()ChartAxis.SetMaxValue(double)ChartAxis.ShouldSerializeStep()ChartAxis.ResetStep()ChartAxis.AutoCalcAxisExtents()ChartAxis.AddItem(ChartAxisItem, params ChartAxisItem[])ChartAxis.AddItem(ChartAxisItemsCollection)ChartAxis.AddItem(ChartAxisItem[])ChartAxis.AddItem(List<ChartAxisItem>)ChartAxis.GetItem(int)ChartAxis.RemoveAllItems()ChartAxis.RemoveItem(ChartAxisItem, params ChartAxisItem[])ChartAxis.RemoveItem(int, params int[])ChartAxis.RemoveItem(int)ChartAxis.RemoveLastItem()ChartAxis.Clear()ChartAxis.AddRange(double, double, double)ChartAxis.AddItem(string, Color, bool)ChartAxis.SetItemLabel(int, string)ChartAxis.SetItemLabel(int, ChartAxisItem)ChartAxis.SetItemColor(int, Color)ChartAxis.Dispose(bool)ChartAxis.VisibleChartAxis.this[int]ChartAxis.AutoScaleChartAxis.AppearanceChartAxis.AxisLabelChartAxis.ParentChartAxis.MinValueChartAxis.MaxValueChartAxis.StepChartAxis.IsZeroBasedChartAxis.MaxItemsCountChartAxis.VisibleValuesChartAxis.LabelStepChartAxis.ItemsRenderedObject.objectContainerRenderedObject.GetOrder()RenderedObject.SetOrder(int)RenderedObject.Remove()RenderedObject.BringForward()RenderedObject.BringToFront()RenderedObject.SendBackward()RenderedObject.SendToBack()RenderedObject.ContainerStateManagedObject.CloneState()StateManagedObject.SetDirty()StateManagedObject.Dispose()StateManagedObject.ViewStateIgnoresCase...

Constructors

Creates a new instance of the ChartXAxis class.

C#
public ChartXAxis(ChartPlotArea parent, IContainer container)
Parameters:parentChartPlotAreacontainerIContainer

Creates a new instance of the ChartXAxis class.

C#
public ChartXAxis(ChartPlotArea parent)
Parameters:parentChartPlotArea

Fields

Cached pixel step value.

C#
protected float pixelStep

Properties

Specifies whether the axis is auto shrink or not.

C#
[Browsable(true)]
public bool AutoShrink { get; set; }

The data source column used as axis items labels source

C#
public string DataLabelsColumn { get; set; }

Gets whether X ChartAxis data bound or not

C#
[Browsable(false)]
public bool IsDataBound { get; }

Specifies the layout style of the axis.

C#
[Browsable(true)]
public ChartAxisLayoutMode LayoutMode { get; set; }

Methods

Adds a new axis item.

C#
public void AddItem(string label, Color color)
Parameters:labelstring

Item text

colorColor

Item text color

Adds a new axis item.

C#
public void AddItem(string label)
Parameters:labelstring

Item text

Clears all data bound settings for axis

C#
public void ClearDataBoundState()

Restores initial values of cached axis settings

C#
protected override void DisableCachedValues()

Overrides: ChartAxis.DisableCachedValues()

Gets the end value coordinate

C#
protected override float GetAxisEndCoord()
Returns:

float

Coordinate

Overrides: ChartAxis.GetAxisEndCoord()

Gets the start value coordinate

C#
protected override float GetAxisStartCoord()
Returns:

float

Coordinate

Overrides: ChartAxis.GetAxisStartCoord()

Returns axis step in pixels

C#
protected float GetPixelStep()
Returns:

float