| Package | com.amcharts.axes |
| Class | public class AxisBase |
| Inheritance | AxisBase mx.core.UIComponent |
| Subclasses | CategoryAxis, ValueAxis |
| Property | Defined by | ||
|---|---|---|---|
| guides : Array
The array of guides belonging to this axis.
| AxisBase | ||
| ignoreAxisWidth : Boolean
If autoMargins property of a chart is set to true but you don't want
this axis to be measured when calculating margin width, set ignoreAxisWidth to true
| AxisBase | ||
| inside : Boolean
Whether values should be placed inside or outside plot area.
| AxisBase | ||
| labelFunction : Function
Label function.
| AxisBase | ||
| maxLabelLength : Number
Maximum length (number of symbols) of a label.
| AxisBase | ||
| maxLabelWidth : Number [read-only]
returns max width of values
| AxisBase | ||
| offset : Number
The distance of the axis to the plot area, in pixels.
| AxisBase | ||
| position : String
Position of the axis.
| AxisBase | ||
| title : String
Axis title will be displayed next to axis.
| AxisBase | ||
| titleAlignment : String
Alignment of axis title.
| AxisBase | ||
| titleTextColor : Number
Text color of axis title
Will use default axis color style value if not set
| AxisBase | ||
| titleTextSize : Number
Text size of axis title
| AxisBase | ||
| valueClickHandler : Function
Method which will be called when user clicks on the axis label
| AxisBase | ||
| Method | Defined by | ||
|---|---|---|---|
|
AxisBase()
Constructor.
| AxisBase | ||
|
Adds guide to the axis
| AxisBase | ||
|
removeGuide(guide:Guide):void
Removes guide from the axis
| AxisBase | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched every time when axis is rebuild. | AxisBase | |||
| guides | property |
guides:Array [read-write]The array of guides belonging to this axis.
Implementation public function get guides():Array
public function set guides(value:Array):void
| ignoreAxisWidth | property |
ignoreAxisWidth:Boolean [read-write]If autoMargins property of a chart is set to true but you don't want this axis to be measured when calculating margin width, set ignoreAxisWidth to true
The default value is false.
public function get ignoreAxisWidth():Boolean
public function set ignoreAxisWidth(value:Boolean):void
| inside | property |
inside:Boolean [read-write]Whether values should be placed inside or outside plot area. In Radar chart this property defines whether values shuold be placed on the left or on the right of the axis (false=left).
The default value is false.
public function get inside():Boolean
public function set inside(value:Boolean):void
| labelFunction | property |
labelFunction:Function [read-write]Label function. Value of axis label will be passed to it and this function should return string which will be displayed instead of the value.
The default value is undefined.
public function get labelFunction():Function
public function set labelFunction(value:Function):void
| maxLabelLength | property |
maxLabelLength:Number [read-write]Maximum length (number of symbols) of a label. If label is longer, it will be truncated. 0 means that labels won't be truncated.
The default value is 0.
public function get maxLabelLength():Number
public function set maxLabelLength(value:Number):void
| maxLabelWidth | property |
maxLabelWidth:Number [read-only]returns max width of values
Implementation public function get maxLabelWidth():Number
| offset | property |
offset:Number [read-write]The distance of the axis to the plot area, in pixels. Useful if you have more then one axis on the same side. This property has no effect on Radar chart.
The default value is 0.
public function get offset():Number
public function set offset(value:Number):void
| position | property |
position:String [read-write]Position of the axis. Category axis' default position is "bottom". Value axis' default position is "left". This property has no effect on Radar chart.
Implementation public function get position():String
public function set position(value:String):void
| title | property |
title:String [read-write]Axis title will be displayed next to axis. Note, in order title to be visible near vertical axis, you'll need to embed fonts.
Implementation public function get title():String
public function set title(value:String):void
| titleAlignment | property |
titleAlignment:String [read-write]Alignment of axis title. Possivle values are: "center", "left", "right"
Implementation public function get titleAlignment():String
public function set titleAlignment(value:String):void
| titleTextColor | property |
titleTextColor:Number [read-write]Text color of axis title Will use default axis color style value if not set
Implementation public function get titleTextColor():Number
public function set titleTextColor(value:Number):void
| titleTextSize | property |
titleTextSize:Number [read-write]Text size of axis title
The default value is 12.
public function get titleTextSize():Number
public function set titleTextSize(value:Number):void
| valueClickHandler | property |
valueClickHandler:Function [read-write]Method which will be called when user clicks on the axis label
The default value is null.
public function get valueClickHandler():Function
public function set valueClickHandler(value:Function):void
| AxisBase | () | constructor |
public function AxisBase()Constructor.
| addGuide | () | method |
public function addGuide(guide:Guide):GuideAdds guide to the axis
Parametersguide:Guide |
Guide |
| fixPosition | () | method |
amcharts_com_internal function fixPosition():void
| removeGuide | () | method |
| axisWidthChanged | event |
com.amcharts.events.AxisEvent
Dispatched every time when axis is rebuild. AxisEvent has property width which is width of axis labels.