ChartAxis
Base chart axis class
Definition
Namespace:Telerik.Charting
Assembly:Telerik.WinControls.RadChart.dll
Syntax:
public abstract class ChartAxis : RenderedObject, IChartingStateManagedItem, IChartingStateManager, IOrdering
Inheritance: objectStateManagedObjectRenderedObjectChartAxis
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a new instance of the ChartAxis class.
public ChartAxis(ChartPlotArea parent, IContainer container)
Creates a new instance of the ChartAxis class.
Fields
ChartAxis style
protected StyleAxis chartAxisAppearance
ChartAxis items
protected ChartAxisItemsCollection chartAxisItems
ChartAxis main label
protected ChartLabel chartAxisLabel
Maximum series value
protected double chartAxisMaxAxisValue
Max axis item value
protected double chartAxisMaxItemValue
Minimum series value
protected double chartAxisMinAxisValue
Min axis item value
protected double chartAxisMinItemValue
Parent element
protected ChartPlotArea chartAxisParent
Axis zero value end point
protected PointF chartAxisPointEnd
Axis start point
protected PointF chartAxisPointStart
Is axis zero based
protected bool chartAxisRealIsZeroBased
Pixels per value field.
protected float pixelsPerValue
Properties
ChartAxis style
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[SkinnableProperty]
public StyleAxis Appearance { get; }
Enables or disables automatic axis scaling.
[Browsable(true)]
public bool AutoScale { get; set; }
ChartAxis label
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
[SkinnableProperty]
public ChartLabel AxisLabel { get; }
Specifies whether the axis begins from 0.
[Browsable(true)]
public bool IsZeroBased { get; set; }
Returns a collection of axis items.
[Browsable(true)]
public ChartAxisItemsCollection Items { get; }
Gets or sets maximal count of the axis items when auto scaling.
[Browsable(true)]
public int MaxItemsCount { get; set; }
Specifies the max value of the axis range.
[Browsable(true)]
public virtual double MaxValue { get; set; }
Specifies the min value of the axis range.
[Browsable(true)]
public virtual double MinValue { get; set; }
Parent element (PlotArea)
[Browsable(false)]
public ChartPlotArea Parent { get; }
Specifies the step at which axis values are calculated
[Browsable(true)]
public virtual double Step { get; set; }
Returns the axis item at the specified position.
Specifies whether the axis should be rendered.
public ChartAxisVisibility Visible { get; set; }
Determines the type of shown values
[Browsable(true)]
public ChartAxisVisibleValues VisibleValues { get; set; }
Methods
Adds a ChartAxisItem to the axis.
public void AddItem(ChartAxisItem item, params ChartAxisItem[] items)
Adds ChartAxisItems to the axis.
Adds a ChartAxisItemsCollection to the axis.
Adds ChartAxisItems to the axis.
Auto determines the min and max value of the axis
protected void AutoCalcAxisExtents()
Clears data values of the axis.
public void Clear()
Restores initial values of cached axis settings
protected virtual void DisableCachedValues()
Gets the end value coordinate
Gets the start value coordinate
Gets the item at the specified index.
Loading ViewState data
protected override void LoadViewState(object savedState)
Saved state bag
Overrides:
Removes all items
public void RemoveAllItems()
Removes the ChartAxisItem specified.
public void RemoveItem(ChartAxisItem item, params ChartAxisItem[] items)
Removes the ChartAxisItem at the specified index.
Removes the last item from the axis.
public void RemoveLastItem()
Resets the MaxValue to default
protected void ResetMaxValue()
Resets the MinValue to default
protected void ResetMinValue()
Resets the Step value to default
protected void ResetStep()
Saves data to a State Bag
protected override object SaveViewState()
Saved axis data to a state bag
Overrides:
Sets new label for the axis item at the specified position.
public void SetItemLabel(int itemIndex, ChartAxisItem newLabel)
Item index in collection
newLabelChartAxisItemAxis item
Sets the maximum axis range value
Sets the min axis range value
The axis MaxValue design time serialization reason
The axis MinValue design time serialization reason
The axis Step design time serialization reason
Tracking ViewState
protected override void TrackViewState()
Overrides: