ClassChartAxis
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
ChartAxis(ChartPlotArea)
Creates a new instance of the ChartAxis class.
Declaration
public ChartAxis(ChartPlotArea parent)
Parameters
parent
ChartAxis(ChartPlotArea, IContainer)
Creates a new instance of the ChartAxis class.
Declaration
public ChartAxis(ChartPlotArea parent, IContainer container)
Parameters
parent
container
Fields
chartAxisAppearance
ChartAxis style
chartAxisItems
ChartAxis items
Declaration
protected ChartAxisItemsCollection chartAxisItems
Field Value
chartAxisLabel
ChartAxis main label
chartAxisMaxAxisValue
Maximum series value
chartAxisMaxItemValue
Max axis item value
chartAxisMinAxisValue
Minimum series value
chartAxisMinItemValue
Min axis item value
chartAxisParent
Parent element
chartAxisPointEnd
Axis zero value end point
chartAxisPointStart
Axis start point
chartAxisRealIsZeroBased
Is axis zero based
pixelsPerValue
Pixels per value field.
Properties
Appearance
ChartAxis style
Declaration
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[SkinnableProperty]
public StyleAxis Appearance { get; }
Property Value
AutoScale
Enables or disables automatic axis scaling.
Declaration
[Browsable(true)]
public bool AutoScale { get; set; }
Property Value
AxisLabel
ChartAxis label
Declaration
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
[SkinnableProperty]
public ChartLabel AxisLabel { get; }
Property Value
IsZeroBased
Specifies whether the axis begins from 0.
Declaration
[Browsable(true)]
public bool IsZeroBased { get; set; }
Property Value
Items
Returns a collection of axis items.
Declaration
[Browsable(true)]
public ChartAxisItemsCollection Items { get; }
Property Value
LabelStep
Draw each 1,2,...,n item
Declaration
[Browsable(true)]
public int LabelStep { get; set; }
Property Value
MaxItemsCount
Gets or sets maximal count of the axis items when auto scaling.
Declaration
[Browsable(true)]
public int MaxItemsCount { get; set; }
Property Value
MaxValue
Specifies the max value of the axis range.
Declaration
[Browsable(true)]
public virtual double MaxValue { get; set; }
Property Value
MinValue
Specifies the min value of the axis range.
Declaration
[Browsable(true)]
public virtual double MinValue { get; set; }
Property Value
Parent
Parent element (PlotArea)
Declaration
[Browsable(false)]
public ChartPlotArea Parent { get; }
Property Value
Step
Specifies the step at which axis values are calculated
Declaration
[Browsable(true)]
public virtual double Step { get; set; }
Property Value
Visible
Specifies whether the axis should be rendered.
Declaration
public ChartAxisVisibility Visible { get; set; }
Property Value
VisibleValues
Determines the type of shown values
Declaration
[Browsable(true)]
public ChartAxisVisibleValues VisibleValues { get; set; }
Property Value
this[int]
Returns the axis item at the specified position.
Declaration
[Browsable(false)]
public ChartAxisItem this[int index] { get; }
Parameters
index
Property Value
Methods
AddItem(ChartAxisItem, params ChartAxisItem[])
Adds a ChartAxisItem to the axis.
Declaration
public void AddItem(ChartAxisItem item, params ChartAxisItem[] items)
Parameters
item
items
AddItem(ChartAxisItem[])
Adds ChartAxisItems to the axis.
Declaration
public void AddItem(ChartAxisItem[] items)
Parameters
items
AddItem(ChartAxisItemsCollection)
Adds a ChartAxisItemsCollection to the axis.
Declaration
public void AddItem(ChartAxisItemsCollection items)
Parameters
items
AddItem(List<ChartAxisItem>)
Adds ChartAxisItems to the axis.
Declaration
public void AddItem(List<ChartAxisItem> items)
Parameters
items
AddItem(string, Color)
Adds a new ChartAxisItem object to the axis with the specified label and color.
Declaration
protected ChartAxisItem AddItem(string label, Color color)
Parameters
label
Axis label
color
Item text color
Returns
AddItem(string, Color, bool)
Adds a new ChartAxisItem object to the axis with the specified label and color.
Declaration
protected ChartAxisItem AddItem(string label, Color color, bool visible)
Parameters
label
Axis label
color
Item text color
visible
Visibility
Returns
AddRange(double, double, double)
Automatically adds new axis items in AutoScale mode.
AutoCalcAxisExtents()
Auto determines the min and max value of the axis
Declaration
protected void AutoCalcAxisExtents()
DisableCachedValues()
Restores initial values of cached axis settings
Declaration
protected virtual void DisableCachedValues()
GetAxisEndCoord()
Gets the end value coordinate
GetAxisStartCoord()
Gets the start value coordinate
GetDistance(PointF, PointF)
Gets distance between points
GetItem(int)
Gets the item at the specified index.
Declaration
public ChartAxisItem GetItem(int index)
Parameters
index
Returns
LoadViewState(object)
Loading ViewState data
Declaration
protected override void LoadViewState(object savedState)
Parameters
savedState
Saved state bag
Overrides
RemoveItem(ChartAxisItem, params ChartAxisItem[])
Removes the ChartAxisItem specified.
Declaration
public void RemoveItem(ChartAxisItem item, params ChartAxisItem[] items)
Parameters
item
items
RemoveItem(int)
Removes the ChartAxisItem at the specified index.
Declaration
public void RemoveItem(int itemIndex)
Parameters
itemIndex
item's index
RemoveItem(int, params int[])
Removes the ChartAxisItems at the specified indexes.
RemoveLastItem()
Removes the last item from the axis.
Declaration
public void RemoveLastItem()
ResetMaxValue()
Resets the MaxValue to default
Declaration
protected void ResetMaxValue()
ResetMinValue()
Resets the MinValue to default
Declaration
protected void ResetMinValue()
SaveViewState()
Saves data to a State Bag
Declaration
protected override object SaveViewState()
Returns
Saved axis data to a state bag
Overrides
SetItemColor(int, Color)
Sets new color for the axis item text at the specified position.
SetItemLabel(int, ChartAxisItem)
Sets new label for the axis item at the specified position.
Declaration
public void SetItemLabel(int itemIndex, ChartAxisItem newLabel)
Parameters
itemIndex
Item index in collection
newLabel
Axis item
SetItemLabel(int, string)
Sets new label text for the axis item at the specified position.
SetMaxValue(double)
Sets the maximum axis range value
Declaration
protected void SetMaxValue(double maxValue)
Parameters
maxValue
Value to set
SetMinValue(double)
Sets the min axis range value
Declaration
protected void SetMinValue(double minValue)
Parameters
minValue
Value to set
ShouldSerializeMaxValue()
The axis MaxValue design time serialization reason
Declaration
protected bool ShouldSerializeMaxValue()
Returns
True is value have to be serialized
ShouldSerializeMinValue()
The axis MinValue design time serialization reason
Declaration
protected bool ShouldSerializeMinValue()
Returns
True is value have to be serialized
ShouldSerializeStep()
The axis Step design time serialization reason
Declaration
protected bool ShouldSerializeStep()
Returns
True is value have to be serialized
TrackViewState()
Tracking ViewState
Declaration
protected override void TrackViewState()
Overrides