Packagecom.amcharts.chartClasses
Classpublic class AmRectangularChart
InheritanceAmRectangularChart Inheritance AmCoordinateChart Inheritance AmChart Inheritance mx.core.UIComponent
SubclassesAmSerialChart, AmXYChart

AmRectangularChart is a base class of XY and Serial charts. It can not be instantiated explicitly.



Public Properties
 PropertyDefined by
  autoMargins : Boolean
Specifies if margins of a chart where axes are will be calculated automatically by the maximum width of a axis label.
AmRectangularChart
 Inheritedballoon : AmBalloon
An instance of com.amcharts.AmBalloon.
AmChart
  chartCursor : ChartCursor
Chart cursor.
AmRectangularChart
  chartScrollbar : ChartScrollbar
Chart scrollbar.
AmRectangularChart
 InheritedchartType : String
returns chart type (serial, xy, or radar).
AmCoordinateChart
 InheritedclipContent : Boolean
Specifies if the chart contents which goes outside the chart area should be clipped or not.
AmChart
 InheriteddataProvider : Object
Specifies the data provider for the chart.
AmChart
 Inheritedgraphs : Array
The array of graphs belonging to this chart.
AmCoordinateChart
 Inheritedlegend : AmLegend
Chart legend.
AmChart
  mouseWheelEnabled : Boolean
Specifies if zooming/scrolling with mouse wheel is enabled.
AmRectangularChart
 InheritednumberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmChart
 InheritedpercentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmChart
 InheritedprefixesOfBigNumbers : Array
Array of objects with prefixes for big numbers.
AmChart
 InheritedprefixesOfSmallNumbers : Array
Array of objects with prefixes for small numbers.
AmChart
  trendLines : Array
Array of trend lines.
AmRectangularChart
 InheritedurlTarget : String
The target of the url.
AmCoordinateChart
 InheritedusePrefixes : Boolean
If true, prefixes will be used for big and small numbers.
AmChart
 InheritedvalueAxes : Array
The array of value axes.
AmCoordinateChart
  zoomOutButton : Object
Zoom-out button, visible when chart is zoomed-in.
AmRectangularChart
  zoomOutText : String
Text in the zoom-out button.
AmRectangularChart
Public Methods
 MethodDefined by
  
Constructor.
AmRectangularChart
 Inherited
Adds a graph (series) to the chart.
AmCoordinateChart
  
Adds a trend line to the chart.
AmRectangularChart
 Inherited
Adds value axis to the chart.
AmCoordinateChart
 Inherited
animateAgain():void
The animation is played only once or if you change the animation styles.
AmCoordinateChart
  
Destorys all listeners.
AmRectangularChart
 Inherited
getGraphById(id:String):AmGraph
Returns graph by id.
AmCoordinateChart
 Inherited
Returns value Axis by id.
AmCoordinateChart
 Inherited
hideGraph(graph:AmGraph):void
Hide the graph (if it is visible).
AmCoordinateChart
 Inherited
Hide value balloon of a graph.
AmCoordinateChart
 Inherited
highlightGraph(graph:AmGraph):void
Highlight the graph.
AmCoordinateChart
 Inherited
In case data inside your dataProvider was changed, you can call this method to rebuild the chart.
AmChart
  
Makes the chart to recalculate margin width and redraw.
AmRectangularChart
  
Removes cursor from the chart.
AmRectangularChart
  
Removes scrollbar from the chart.
AmRectangularChart
 Inherited
removeGraph(graph:AmGraph):void
Removes graph from the chart.
AmCoordinateChart
  
removeTrendLine(trendLine:TrendLine):void
Removes trend line from the chart.
AmRectangularChart
 Inherited
removeValueAxis(valueAxis:ValueAxis):void
Removes value axis from the chart.
AmCoordinateChart
 Inherited
showGraph(graph:AmGraph):void
Show the graph (if it is hidden).
AmCoordinateChart
 Inherited
Show value balloon of a graph.
AmCoordinateChart
 Inherited
UnhighlightGraph the graph.
AmCoordinateChart
Protected Methods
 MethodDefined by
  
setAxisRotation(valueAxis:ValueAxis):void
AmRectangularChart
Events
 EventSummaryDefined by
 Inherited Dispatched when the user clicks on a data item (column/bullet).AmCoordinateChart
 Inherited Dispatched when the chart was updated with new data, when dataProvider or data inside dataProvider was changed.AmChart
 Inherited Dispatched when the user double clicks on a data item (column/bullet).AmCoordinateChart
   Dispatched when chart margin was updated (only if autoMargins is set to true) AmRectangularChart
 Inherited Dispatched when the user rolls out of the data item (column/bullet).AmCoordinateChart
 Inherited Dispatched when the user rolls over data item (column/bullet).AmCoordinateChart
Styles
 StyleDescriptionDefined by
  
angle
Type: Number   CSS Inheritance: no
The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). The default value is 0.
AmRectangularChart
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label.
AmChart
 Inherited Type: Array   Format: Color   CSS Inheritance: no
Specifies the colors of the graphs if the color is not set.
AmCoordinateChart
  
depth3D
Type: Number   CSS Inheritance: no
The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0). The default value is 0.
AmRectangularChart
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Name of the font to use.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls.
AmChart
 Inherited Type: Number   CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls.
AmChart
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Height of the text, in pixels.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is italic font.
AmChart
 Inherited Type: Number   CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is boldface.
AmChart
 Inherited Type: Boolean   CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false).
AmChart
 Inherited Type: Number   CSS Inheritance: yes
The number of additional pixels to appear between each character.
AmChart
  
marginBottom
Type: Number   CSS Inheritance: no
Number of pixels between the container's bottom border and plot area. This space can be used for bottom axis' values. The default value is 35.
AmRectangularChart
  
marginLeft
Type: Number   CSS Inheritance: no
Number of pixels between the container's left border and plot area. This space can be used for left axis' values. The default value is 80.
AmRectangularChart
  
marginRight
Type: Number   CSS Inheritance: no
Number of pixels between the container's right border and plot area. This space can be used for Right axis' values. The default value is 15.
AmRectangularChart
  
marginTop
Type: Number   CSS Inheritance: no
Number of pixels between the container's top border and plot area. This space can be used for top axis' values. The default value is 15.
AmRectangularChart
 Inherited Type: Number   CSS Inheritance: no
The opacity of plot area's border.
AmCoordinateChart
 Inherited Type: uint   Format: Color   CSS Inheritance: no
The color of the plot area's border.
AmCoordinateChart
 Inherited Type: Array   CSS Inheritance: no
Specifies the alphas used to tint the background gradient fill of the plot area.
AmCoordinateChart
 Inherited Type: Array   Format: Color   CSS Inheritance: no
Specifies the colors used to tint the background gradient fill of the plot area.
AmCoordinateChart
 Inherited Type: Boolean   CSS Inheritance: no
Specifies whether the animation should be sequenced or all objects should appear at once.
AmCoordinateChart
 Inherited Type: Number   CSS Inheritance: no
The initial opacity of the column/line.
AmCoordinateChart
 Inherited Type: Number   CSS Inheritance: no
Duration of the animation, in seconds.
AmCoordinateChart
 Inherited Type: Function   CSS Inheritance: no
Animation effect.
AmCoordinateChart
 Inherited Type: String   CSS Inheritance: no
Direction from which line graphs should fly-in.
AmCoordinateChart
 Inherited Type: String   CSS Inheritance: yes
Alignment of text within a container.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is underlined.
AmChart
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels.
AmChart
Property detail
autoMarginsproperty
autoMargins:Boolean  [read-write]

Specifies if margins of a chart where axes are will be calculated automatically by the maximum width of a axis label.

The default value is true.

Implementation
    public function get autoMargins():Boolean
    public function set autoMargins(value:Boolean):void
chartCursorproperty 
chartCursor:ChartCursor  [read-write]

Chart cursor.

Implementation
    public function get chartCursor():ChartCursor
    public function set chartCursor(value:ChartCursor):void
chartScrollbarproperty 
chartScrollbar:ChartScrollbar  [read-write]

Chart scrollbar.

Implementation
    public function get chartScrollbar():ChartScrollbar
    public function set chartScrollbar(value:ChartScrollbar):void
mouseWheelEnabledproperty 
mouseWheelEnabled:Boolean  [read-write]

Specifies if zooming/scrolling with mouse wheel is enabled. Scrollbar must be added to the chart in order this to work.

The default value is true.

Implementation
    public function get mouseWheelEnabled():Boolean
    public function set mouseWheelEnabled(value:Boolean):void
trendLinesproperty 
trendLines:Array  [read-write]

Array of trend lines.

Implementation
    public function get trendLines():Array
    public function set trendLines(value:Array):void
zoomOutButtonproperty 
zoomOutButton:Object  [read-write]

Zoom-out button, visible when chart is zoomed-in.

Implementation
    public function get zoomOutButton():Object
    public function set zoomOutButton(value:Object):void
zoomOutTextproperty 
zoomOutText:String  [read-write]

Text in the zoom-out button.

The default value is Show all.

Implementation
    public function get zoomOutText():String
    public function set zoomOutText(value:String):void
Constructor detail
AmRectangularChart()constructor
public function AmRectangularChart()

Constructor.

Method detail
addTrendLine()method
public function addTrendLine(trendLine:TrendLine):TrendLine

Adds a trend line to the chart.

Parameters
trendLine:TrendLine

Returns
TrendLine
destroyAllListeners()method 
public function destroyAllListeners():void

Destorys all listeners.

invalidateMargins()method 
public function invalidateMargins():void

Makes the chart to recalculate margin width and redraw.

removeChartCursor()method 
public function removeChartCursor():void

Removes cursor from the chart.

removeChartScrollbar()method 
public function removeChartScrollbar():void

Removes scrollbar from the chart.

removeTrendLine()method 
public function removeTrendLine(trendLine:TrendLine):void

Removes trend line from the chart.

Parameters
trendLine:TrendLine — is the trend line which should be removed from the chart.

See also

setAxisRotation()method 
protected function setAxisRotation(valueAxis:ValueAxis):voidParameters
valueAxis:ValueAxis
Event detail
marginsUpdatedevent 
Event object type: com.amcharts.events.AmChartEvent

Dispatched when chart margin was updated (only if autoMargins is set to true)