| Package | com.amcharts.chartClasses |
| Class | public class AmRectangularChart |
| Inheritance | AmRectangularChart AmCoordinateChart AmChart mx.core.UIComponent |
| Subclasses | AmSerialChart, AmXYChart |
| Property | Defined 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 | ||
![]() | balloon : AmBalloon
An instance of com.amcharts.AmBalloon.
| AmChart | |
| chartCursor : ChartCursor
Chart cursor.
| AmRectangularChart | ||
| chartScrollbar : ChartScrollbar
Chart scrollbar.
| AmRectangularChart | ||
![]() | chartType : String
returns chart type (serial, xy, or radar).
| AmCoordinateChart | |
![]() | clipContent : Boolean
Specifies if the chart contents which goes outside the chart area should be clipped or not.
| AmChart | |
![]() | dataProvider : Object
Specifies the data provider for the chart.
| AmChart | |
![]() | graphs : Array
The array of graphs belonging to this chart.
| AmCoordinateChart | |
![]() | legend : AmLegend
Chart legend.
| AmChart | |
| mouseWheelEnabled : Boolean
Specifies if zooming/scrolling with mouse wheel is enabled.
| AmRectangularChart | ||
![]() | numberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
| AmChart | |
![]() | percentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
| AmChart | |
![]() | prefixesOfBigNumbers : Array
Array of objects with prefixes for big numbers.
| AmChart | |
![]() | prefixesOfSmallNumbers : Array
Array of objects with prefixes for small numbers.
| AmChart | |
| trendLines : Array
Array of trend lines.
| AmRectangularChart | ||
![]() | urlTarget : String
The target of the url.
| AmCoordinateChart | |
![]() | usePrefixes : Boolean
If true, prefixes will be used for big and small numbers.
| AmChart | |
![]() | valueAxes : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| AmRectangularChart | ||
![]() |
Adds a graph (series) to the chart.
| AmCoordinateChart | |
|
Adds a trend line to the chart.
| AmRectangularChart | ||
![]() |
Adds value axis to the chart.
| AmCoordinateChart | |
![]() |
animateAgain():void
The animation is played only once or if you change the animation styles.
| AmCoordinateChart | |
|
destroyAllListeners():void
Destorys all listeners.
| AmRectangularChart | ||
![]() |
getGraphById(id:String):AmGraph
Returns graph by id.
| AmCoordinateChart | |
![]() |
getValueAxisById(id:String):ValueAxis
Returns value Axis by id.
| AmCoordinateChart | |
![]() |
Hide the graph (if it is visible).
| AmCoordinateChart | |
![]() |
hideGraphsBalloon(graph:AmGraph):void
Hide value balloon of a graph.
| AmCoordinateChart | |
![]() |
highlightGraph(graph:AmGraph):void
Highlight the graph.
| AmCoordinateChart | |
![]() |
invalidateData():void
In case data inside your dataProvider was changed, you can call this
method to rebuild the chart.
| AmChart | |
|
invalidateMargins():void
Makes the chart to recalculate margin width and redraw.
| AmRectangularChart | ||
|
removeChartCursor():void
Removes cursor from the chart.
| AmRectangularChart | ||
|
removeChartScrollbar():void
Removes scrollbar from the chart.
| AmRectangularChart | ||
![]() |
removeGraph(graph:AmGraph):void
Removes graph from the chart.
| AmCoordinateChart | |
|
removeTrendLine(trendLine:TrendLine):void
Removes trend line from the chart.
| AmRectangularChart | ||
![]() |
removeValueAxis(valueAxis:ValueAxis):void
Removes value axis from the chart.
| AmCoordinateChart | |
![]() |
Show the graph (if it is hidden).
| AmCoordinateChart | |
![]() |
showGraphsBalloon(graph:AmGraph):void
Show value balloon of a graph.
| AmCoordinateChart | |
![]() |
unhighlightGraph():void
UnhighlightGraph the graph.
| AmCoordinateChart | |
| Method | Defined by | ||
|---|---|---|---|
|
setAxisRotation(valueAxis:ValueAxis):void
| AmRectangularChart | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | Dispatched when the user clicks on a data item (column/bullet). | AmCoordinateChart | ||
![]() | Dispatched when the chart was updated with new data, when dataProvider or data inside dataProvider was changed. | AmChart | ||
![]() | 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 | |||
![]() | Dispatched when the user rolls out of the data item (column/bullet). | AmCoordinateChart | ||
![]() | Dispatched when the user rolls over data item (column/bullet). | AmCoordinateChart | ||
| Style | Description | Defined 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 | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of text in the component, including the component label. | AmChart | ||
![]() | 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 | ||
![]() | Type: uint Format: Color CSS Inheritance: yes Color of text in the component if it is disabled. | AmChart | ||
![]() | Type: String CSS Inheritance: yes Sets the antiAliasType property of internal TextFields. | AmChart | ||
![]() | Type: String CSS Inheritance: yes Name of the font to use. | AmChart | ||
![]() | Type: String CSS Inheritance: yes Sets the gridFitType property of internal TextFields that represent text in Flex controls. | AmChart | ||
![]() | Type: Number CSS Inheritance: yes Sets the sharpness property of internal TextFields that represent text in Flex controls. | AmChart | ||
![]() | Type: Number Format: Length CSS Inheritance: yes Height of the text, in pixels. | AmChart | ||
![]() | Type: String CSS Inheritance: yes Determines whether the text is italic font. | AmChart | ||
![]() | Type: Number CSS Inheritance: yes Sets the thickness property of internal TextFields that represent text in Flex controls. | AmChart | ||
![]() | Type: String CSS Inheritance: yes Determines whether the text is boldface. | AmChart | ||
![]() | Type: Boolean CSS Inheritance: yes A Boolean value that indicates whether kerning is enabled ( true) or disabled (false). | AmChart | ||
![]() | 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 | ||
![]() | Type: Number CSS Inheritance: no The opacity of plot area's border. | AmCoordinateChart | ||
![]() | Type: uint Format: Color CSS Inheritance: no The color of the plot area's border. | AmCoordinateChart | ||
![]() | Type: Array CSS Inheritance: no Specifies the alphas used to tint the background gradient fill of the plot area. | AmCoordinateChart | ||
![]() | Type: Array Format: Color CSS Inheritance: no Specifies the colors used to tint the background gradient fill of the plot area. | AmCoordinateChart | ||
![]() | Type: Boolean CSS Inheritance: no Specifies whether the animation should be sequenced or all objects should appear at once. | AmCoordinateChart | ||
![]() | Type: Number CSS Inheritance: no The initial opacity of the column/line. | AmCoordinateChart | ||
![]() | Type: Number CSS Inheritance: no Duration of the animation, in seconds. | AmCoordinateChart | ||
![]() | Type: Function CSS Inheritance: no Animation effect. | AmCoordinateChart | ||
![]() | Type: String CSS Inheritance: no Direction from which line graphs should fly-in. | AmCoordinateChart | ||
![]() | Type: String CSS Inheritance: yes Alignment of text within a container. | AmChart | ||
![]() | Type: String CSS Inheritance: yes Determines whether the text is underlined. | AmChart | ||
![]() | Type: Number Format: Length CSS Inheritance: yes Offset of first line of text from the left side of the container, in pixels. | AmChart | ||
| autoMargins | property |
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.
public function get autoMargins():Boolean
public function set autoMargins(value:Boolean):void
| chartCursor | property |
chartCursor:ChartCursor [read-write]Chart cursor.
Implementation public function get chartCursor():ChartCursor
public function set chartCursor(value:ChartCursor):void
| chartScrollbar | property |
chartScrollbar:ChartScrollbar [read-write]Chart scrollbar.
Implementation public function get chartScrollbar():ChartScrollbar
public function set chartScrollbar(value:ChartScrollbar):void
| mouseWheelEnabled | property |
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.
public function get mouseWheelEnabled():Boolean
public function set mouseWheelEnabled(value:Boolean):void
| trendLines | property |
trendLines:Array [read-write]Array of trend lines.
Implementation public function get trendLines():Array
public function set trendLines(value:Array):void
| zoomOutButton | property |
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
| zoomOutText | property |
zoomOutText:String [read-write]Text in the zoom-out button.
The default value is Show all.
public function get zoomOutText():String
public function set zoomOutText(value:String):void
| AmRectangularChart | () | constructor |
public function AmRectangularChart()Constructor.
| addTrendLine | () | method |
public function addTrendLine(trendLine:TrendLine):TrendLineAdds a trend line to the chart.
ParameterstrendLine:TrendLine |
TrendLine |
| destroyAllListeners | () | method |
public function destroyAllListeners():voidDestorys all listeners.
| invalidateMargins | () | method |
public function invalidateMargins():voidMakes the chart to recalculate margin width and redraw.
| removeChartCursor | () | method |
public function removeChartCursor():voidRemoves cursor from the chart.
| removeChartScrollbar | () | method |
public function removeChartScrollbar():voidRemoves scrollbar from the chart.
| removeTrendLine | () | method |
public function removeTrendLine(trendLine:TrendLine):voidRemoves trend line from the chart.
ParameterstrendLine:TrendLine — is the trend line which should be removed from the chart.
|
See also
| setAxisRotation | () | method |
| marginsUpdated | event |
com.amcharts.events.AmChartEvent
Dispatched when chart margin was updated (only if autoMargins is set to true)