Class
ChartXAxis

Represents the X Axis.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.RadChart.dll

Syntax:

cs-api-definition
[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.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.ViewStateIgnoresCase

Constructors

ChartXAxis(ChartPlotArea)

Creates a new instance of the ChartXAxis class.

Declaration

cs-api-definition
public ChartXAxis(ChartPlotArea parent)

Parameters

parent

ChartPlotArea

ChartXAxis(ChartPlotArea, IContainer)

Creates a new instance of the ChartXAxis class.

Declaration

cs-api-definition
public ChartXAxis(ChartPlotArea parent, IContainer container)

Parameters

parent

ChartPlotArea

container

IContainer

Fields

pixelStep

Cached pixel step value.

Declaration

cs-api-definition
protected float pixelStep

Field Value

float

Properties

AutoShrink

Specifies whether the axis is auto shrink or not.

Declaration

cs-api-definition
[Browsable(true)]
public bool AutoShrink { get; set; }

Property Value

bool

DataLabelsColumn

The data source column used as axis items labels source

Declaration

cs-api-definition
public string DataLabelsColumn { get; set; }

Property Value

string

IsDataBound

Gets whether X ChartAxis data bound or not

Declaration

cs-api-definition
[Browsable(false)]
public bool IsDataBound { get; }

Property Value

bool

LayoutMode

Specifies the layout style of the axis.

Declaration

cs-api-definition
[Browsable(true)]
public ChartAxisLayoutMode LayoutMode { get; set; }

Property Value

ChartAxisLayoutMode

Methods

AddItem(string)

Adds a new axis item.

Declaration

cs-api-definition
public void AddItem(string label)

Parameters

label

string

Item text

AddItem(string, Color)

Adds a new axis item.

Declaration

cs-api-definition
public void AddItem(string label, Color color)

Parameters

label

string

Item text

color

Color

Item text color

ClearDataBoundState()

Clears all data bound settings for axis

Declaration

cs-api-definition
public void ClearDataBoundState()

DisableCachedValues()

Restores initial values of cached axis settings

Declaration

cs-api-definition
protected override void DisableCachedValues()

Overrides ChartAxis.DisableCachedValues()

GetAxisEndCoord()

Gets the end value coordinate

Declaration

cs-api-definition
protected override float GetAxisEndCoord()

Returns

float

Coordinate

Overrides ChartAxis.GetAxisEndCoord()

GetAxisStartCoord()

Gets the start value coordinate

Declaration

cs-api-definition
protected override float GetAxisStartCoord()

Returns

float

Coordinate

Overrides ChartAxis.GetAxisStartCoord()

GetPixelStep()

Returns axis step in pixels

Declaration

cs-api-definition
protected float GetPixelStep()

Returns

float