Packagecom.amcharts.chartClasses
Classpublic class AmChart
InheritanceAmChart Inheritance mx.core.UIComponent
SubclassesAmCoordinateChart, AmPieChart

AmChart is a base class of all charts. It can not be instantiated explicitly.



Public Properties
 PropertyDefined by
  balloon : AmBalloon
An instance of com.amcharts.AmBalloon.
AmChart
  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
  legend : AmLegend
Chart legend.
AmChart
  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
  usePrefixes : Boolean
If true, prefixes will be used for big and small numbers.
AmChart
Public Methods
 MethodDefined by
  
Constructor.
AmChart
  
In case data inside your dataProvider was changed, you can call this method to rebuild the chart.
AmChart
Events
 EventSummaryDefined by
   Dispatched when the chart was updated with new data, when dataProvider or data inside dataProvider was changed.AmChart
Styles
 StyleDescriptionDefined by
  
color
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.
AmChart
  
disabledColor
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled. The default value is 0xAAB3B3.
AmChart
  
fontAntiAliasType
Type: String   CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields. The possible values are "normal" (flash.text.AntiAliasType.NORMAL) and "advanced" (flash.text.AntiAliasType.ADVANCED).

The default value is "advanced", which enables advanced anti-aliasing for the font. Set to "normal" to disable the advanced anti-aliasing.

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you cannot apply it to some characters and not others.

The default value is "advanced".
AmChart
  
fontFamily
Type: String   CSS Inheritance: yes
Name of the font to use. Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default value is "Verdana".
AmChart
  
fontGridFitType
Type: String   CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls. The possible values are "none" (flash.text.GridFitType.NONE), "pixel" (flash.text.GridFitType.PIXEL), and "subpixel" (flash.text.GridFitType.SUBPIXEL).

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is "pixel".
AmChart
  
fontSharpness
Type: Number   CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls. This property specifies the sharpness of the glyph edges. The possible values are Numbers from -400 through 400.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is 0.
AmChart
  
fontSize
Type: Number   Format: Length   CSS Inheritance: yes
Height of the text, in pixels. The default value is 10 for all controls except the ColorPicker control. For the ColorPicker control, the default value is 11.
AmChart
  
fontStyle
Type: String   CSS Inheritance: yes
Determines whether the text is italic font. Recognized values are "normal" and "italic". The default value is "normal".
AmChart
  
fontThickness
Type: Number   CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls. This property specifies the thickness of the glyph edges. The possible values are Numbers from -200 to 200.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect on system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is 0.
AmChart
  
fontWeight
Type: String   CSS Inheritance: yes
Determines whether the text is boldface. Recognized values are normal and bold. The default value for Button controls is bold. The default value for all other controls is normal.
AmChart
  
kerning
Type: Boolean   CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false). Kerning adjusts the gap between certain character pairs to improve readability, and should be used only when necessary, such as with headings in large fonts. Kerning is supported for embedded fonts only. Certain fonts, such as Verdana, and monospaced fonts, such as Courier New, do not support kerning. The default value is false.
AmChart
  
letterSpacing
Type: Number   CSS Inheritance: yes
The number of additional pixels to appear between each character. A positive value increases the character spacing beyond the normal spacing, while a negative value decreases it. The default value is 0.
AmChart
  
textAlign
Type: String   CSS Inheritance: yes
Alignment of text within a container. Possible values are "left", "right", or "center".

The default value for most components is "left". For the FormItem component, the default value is "right". For the Button, LinkButton, and AccordionHeader components, the default value is "center", and this property is only recognized when the labelPlacement property is set to "left" or "right". If labelPlacement is set to "top" or "bottom", the text and any icon are centered.

AmChart
  
textDecoration
Type: String   CSS Inheritance: yes
Determines whether the text is underlined. Possible values are "none" and "underline". The default value is "none".
AmChart
  
textIndent
Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels. The default value is 0.
AmChart
Property detail
balloonproperty
balloon:AmBalloon  [read-write]

An instance of com.amcharts.AmBalloon.

The default value is com.amcharts.AmBalloon.

Implementation
    public function get balloon():AmBalloon
    public function set balloon(value:AmBalloon):void
clipContentproperty 
clipContent:Boolean  [read-write]

Specifies if the chart contents which goes outside the chart area should be clipped or not.

The default value is true.

Implementation
    public function get clipContent():Boolean
    public function set clipContent(value:Boolean):void
dataProviderproperty 
dataProvider:Object  [read-write]

Specifies the data provider for the chart.

This property can accept an Array, ArrayCollection or IList.

Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
legendproperty 
legend:AmLegend  [read-write]

Chart legend.

Implementation
    public function get legend():AmLegend
    public function set legend(value:AmLegend):void
numberFormatterproperty 
numberFormatter:NumberFormatter  [read-write]

An instance of mx.formatters.NumberFormatter. The control uses this class to format the numbers.

The default value is mx.formatters.NumberFormatter.

Implementation
    public function get numberFormatter():NumberFormatter
    public function set numberFormatter(value:NumberFormatter):void
percentFormatterproperty 
percentFormatter:NumberFormatter  [read-write]

An instance of mx.formatters.NumberFormatter. The control uses this class to format the percent numbers.

The default value is mx.formatters.NumberFormatter with precision = 1.

Implementation
    public function get percentFormatter():NumberFormatter
    public function set percentFormatter(value:NumberFormatter):void
prefixesOfBigNumbersproperty 
prefixesOfBigNumbers:Array  [read-write]

Array of objects with prefixes for big numbers.

The default value is [{number:1e+3,prefix:"k"},{number:1e+6,prefix:"M"},{number:1e+9,prefix:"G"},{number:1e+12,prefix:"T"},{number:1e+15,prefix:"P"},{number:1e+18,prefix:"E"},{number:1e+21,prefix:"Z"},{number:1e+24,prefix:"Y"}].

Implementation
    public function get prefixesOfBigNumbers():Array
    public function set prefixesOfBigNumbers(value:Array):void
prefixesOfSmallNumbersproperty 
prefixesOfSmallNumbers:Array  [read-write]

Array of objects with prefixes for small numbers.

The default value is [{number:1e-24, prefix:"y"},{number:1e-21, prefix:"z"},{number:1e-18, prefix:"a"},{number:1e-15, prefix:"f"},{number:1e-12, prefix:"p"},{number:1e-9, prefix:"n"},{number:1e-6, prefix:"μ"},{number:1e-3, prefix:"m"}].

Implementation
    public function get prefixesOfSmallNumbers():Array
    public function set prefixesOfSmallNumbers(value:Array):void
usePrefixesproperty 
usePrefixes:Boolean  [read-write]

If true, prefixes will be used for big and small numbers. You can set arrays of prefixes via prefixesOfSmallNumbers and prefixesOfBigNumbers.

Implementation
    public function get usePrefixes():Boolean
    public function set usePrefixes(value:Boolean):void
Constructor detail
AmChart()constructor
public function AmChart()

Constructor.

Method detail
invalidateData()method
public function invalidateData():void

In case data inside your dataProvider was changed, you can call this method to rebuild the chart.

Event detail
dataUpdatedevent 
Event object type: com.amcharts.events.AmChartEvent

Dispatched when the chart was updated with new data, when dataProvider or data inside dataProvider was changed.