Packagecom.amcharts.chartClasses
Classpublic class AmGraph
InheritanceAmGraph Inheritance mx.core.UIComponent

Graph class displays all types of graphs - line, column, step line, smoothed line, ohlc and candlestick. XY and Radar charts can only display "line" type graphs.

View the examples.



Public Properties
 PropertyDefined by
  alphaField : String
Name of the alpha field in your dataProvider.
AmGraph
  balloonText : String
Balloon text.
AmGraph
  bulletConfigField : String
Name of the bullet config field.
AmGraph
  bulletField : String
Name of the bullet field in your dataProvider.
AmGraph
  bulletSizeField : String
Name of the bullet size field in your dataProvider.
AmGraph
  categoryField : String
Name of the category field (only required if a separate dataProvider for this graph is set).
AmGraph
  centerCustomBullets : Boolean
Specifies whether custom bullets should be centered or not.
AmGraph
  closeField : String
Name of the close field (used by candlesticks and ohlc) in your dataProvider.
AmGraph
  colorField : String
Name of the color field in your dataProvider.
AmGraph
  combineSeries : Boolean
Set this to true if you set a separate data provider for this graph and your data has series which are not included in the main data provider and you want the chart to combine series from both data providers.
AmGraph
  customBullet : *
Custom bullet (class or path to file name).
AmGraph
  customBulletField : String
Name of the custom bullet field in your dataProvider.
AmGraph
  dataPointCount : Number
[read-only] returns number of data points with not null value
AmGraph
  dataProvider : Object
Specifies the data provider for the graph, in case it is different from Chart's data provider.
AmGraph
  descriptionField : String
Name of the description field in your dataProvider.
AmGraph
  fillColorsField : String
Name of the fill colors field in your dataProvider.
AmGraph
  hidden : Boolean
Specifies whether the graph is hidden.
AmGraph
  highField : String
Name of the high field (used by candlesticks and ohlc) in your dataProvider.
AmGraph
  yAxis : ValueAxis
XY chart only: specifies which vertical value axis the graph will use.
AmGraph
  yField : String
Name of the y field in your dataProvider (XY chart only).
AmGraph
  ignoreOpenValue : Boolean
line and step line graphs can show "ranges" - fills between "open" and "value" values.
AmGraph
  includeInMinMax : Boolean
Whether to include this graph when calculating min and max value of the axis.
AmGraph
  itemColors : Array
Every data item (column, bullet) can use a different color from this array.
AmGraph
  labelText : String
Value label text.
AmGraph
  legendValueText : String
Legend value text.
AmGraph
  lowField : String
Name of the low field (used by candlesticks and ohlc) in your dataProvider.
AmGraph
  markerType : String
Legend marker type.
AmGraph
  maxBulletSize : Number
Maximum size of a bullet (XY chart, when bullet's size depends on a value).
AmGraph
  minBulletSize : Number
Minimum size of a bullet (XY chart, when bullet's size depends on a value).
AmGraph
  negativeBase : Number
If you use different colors for your negative values, a graph below zero line is filled with negativeColor.
AmGraph
  numberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmGraph
  openField : String
Name of the open field (used by floating columns, candlesticks and ohlc) in your dataProvider.
AmGraph
  pointPosition : String
Specifies where data points should be placed.
AmGraph
  seriesIdField : String
Name of the category field (only required if a separate dataProvider for this graph is set).
AmGraph
  showAllValueLabels : Boolean
if graph's type is column and labelText is set, graph hides labels which do not fit into the column's space.
AmGraph
  showBalloon : Boolean
Specifies whether the value balloon of this graph is shown on the indicator.
AmGraph
  showBalloonAt : String
Specifies graphs value at which cursor is showed.
AmGraph
  showBulletAt : String
Specifies graphs value at which balloon is showed.
AmGraph
  stackable : Boolean
If the value axis of this graph has stack types like "regular" or "100%" you can exclude this graph from stacking.
AmGraph
  type : String
Type of the graph.
AmGraph
  title : String
Graph title.
AmGraph
  urlField : String
Name of the url field in your dataProvider.
AmGraph
  valueAxis : ValueAxis
Specifies which value axis the graph will use.
AmGraph
  valueField : String
Name of the value field in your dataProvider.
AmGraph
  visibleInLegend : Boolean
Specifies whether this graph should be shown in the Legend.
AmGraph
  xAxis : ValueAxis
XY chart only: specifies which horizontal value axis the graph will use.
AmGraph
  xField : String
Name of the x field in your dataProvider (XY chart only).
AmGraph
Public Methods
 MethodDefined by
  
Constructor.
AmGraph
  
hideBullets():void
Hide bullets.
AmGraph
  
showBullets():void
Show bullets.
AmGraph
Styles
 StyleDescriptionDefined by
  
balloonColor
Type: uint   Format: Color   CSS Inheritance: no
Balloon color. Will use lineColor or dataItem.color if not set. The default value is undefined.
AmGraph
  
bullet
Type: String   CSS Inheritance: no
Bullet type. Possible values are: none, round, square, triangleUp, triangleDown, bubble, custom. The default value is none.
AmGraph
  
bulletAlpha
Type: Number   CSS Inheritance: no
Bullet opacity. The default value is 1.
AmGraph
  
bulletBorderAlpha
Type: Number   CSS Inheritance: no
Bullet border opacity. The default value is 1.
AmGraph
  
bulletBorderColor
Type: uint   Format: Color   CSS Inheritance: no
Bullet border color. The default value is undefined.
AmGraph
  
bulletBorderThickness
Type: Number   CSS Inheritance: no
Bullet border thickness. The default value is 2.
AmGraph
  
bulletColor
Type: uint   Format: Color   CSS Inheritance: no
Bullet color. Will use lineColor if not set. The default value is undefined.
AmGraph
  
bulletOffset
Type: Number   CSS Inheritance: no
Bullet offset. Distance from the actual data point to the bullet. Can be used to place custom bullets above the columns. The default value is 0.
AmGraph
  
bulletSize
Type: Number   CSS Inheritance: no
Bullet size. The default value is 8.
AmGraph
  
color
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.
AmGraph
  
connect
Type: Boolean   CSS Inheritance: no
Specifies whether to connect data points if data is missing. The default value is true.
AmGraph
  
cornerRadiusBottom
Type: String   CSS Inheritance: no
Corner radius of columns' bottom. It can be set both in pixels or in percents. The chart's depth and angle styles must be set to 0. The default value is 0.
AmGraph
  
cornerRadiusTop
Type: String   CSS Inheritance: no
Corner radius of columns' top. It can be set both in pixels or in percents. The chart's depth and angle styles must be set to 0. The default value is 0.
AmGraph
  
cursorBulletAlpha
Type: Number   CSS Inheritance: no
If bulletsEnabled of ChartCurosor is true, a bullet on each graph follows the cursor. You can set opacity of each graphs bullet. In case you want to disable these bullets for a certain graph, set opacity to 0. The default value is 1.
AmGraph
  
dashLength
Type: Number   CSS Inheritance: no
Dash length. If you set it to a value greater than 0, the graph line will be dashed. Smoothed line chart can't be dashed. The default value is 0.
AmGraph
  
disabledColor
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled. The default value is 0xAAB3B3.
AmGraph
  
fillAlphas
Type: Array   CSS Inheritance: no
Array of fill opacities. Will use [lineAlpha] if not set.
AmGraph
  
fillColors
Type: Array   Format: Color   CSS Inheritance: no
Array of fill colors. Will use [lineColor] if not set. Smoothed line chart can't be filled with gradients, the first color of the array will be used.
AmGraph
  
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".
AmGraph
  
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".
AmGraph
  
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".
AmGraph
  
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.
AmGraph
  
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.
AmGraph
  
fontStyle
Type: String   CSS Inheritance: yes
Determines whether the text is italic font. Recognized values are "normal" and "italic". The default value is "normal".
AmGraph
  
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.
AmGraph
  
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.
AmGraph
  
gradientOrientation
Type: String   CSS Inheritance: no
Orientation of the gradient fills (only for "column" graph type). Possible values are "vertical" and "horizontal". The default value is vertical.
AmGraph
  
hideBulletsCount
Type: Number   CSS Inheritance: no
If there are more data points than hideBulletsCount, the bullets will not be shown. 0 means the bullets will always be visible. The default value is 0.
AmGraph
  
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.
AmGraph
  
labelPosition
Type: String   CSS Inheritance: no
Position of data label. Possible values are: bottom, top, right, left, inside, middle. Sometimes position is changed by the chart, depending on a graph type, rotation, etc. The default value is top.
AmGraph
  
legendAlpha
Type: Number   CSS Inheritance: no
Legend marker opacity. Will use lineAlpha if not set. The default value is undefined.
AmGraph
  
legendColor
Type: uint   Format: Color   CSS Inheritance: no
Legend marker color. Will use lineColor if not set. The default value is undefined.
AmGraph
  
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.
AmGraph
  
lineAlpha
Type: Number   CSS Inheritance: no
Opacity of the line (or column border). The default value is 1.
AmGraph
  
lineColor
Type: uint   Format: Color   CSS Inheritance: yes
Color of the line (or column border). If you do not set any, the color from AmCoordinateChart "colors" style will be used. The default value is undefined.
AmGraph
  
lineThickness
Type: Number   CSS Inheritance: no
Specifies thickness of the graph line (or column border). 0 means the line will be 1 pixel wide. The default value is 0.
AmGraph
  
negativeFillAlphas
Type: Array   CSS Inheritance: no
Array of fill opacities when value is negative. Will use [fillAlphas] if not set.
AmGraph
  
negativeFillColors
Type: Array   Format: Color   CSS Inheritance: no
Array of fill colors when value is negative. In case the graph type is candlestick or ohlc, negativeFillColors are used when close value is less then open value. The default value is undefined.
AmGraph
  
negativeLineColor
Type: uint   Format: Color   CSS Inheritance: no
Color of the line (or column) when the values are negative. In case the graph type is candlestick or ohlc, negativeLineColor is used when close value is less then open value. The default value is undefined.
AmGraph
  
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.

AmGraph
  
textDecoration
Type: String   CSS Inheritance: yes
Determines whether the text is underlined. Possible values are "none" and "underline". The default value is "none".
AmGraph
  
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.
AmGraph
Property detail
alphaFieldproperty
alphaField:String  [read-write]

Name of the alpha field in your dataProvider.

Implementation
    public function get alphaField():String
    public function set alphaField(value:String):void
balloonTextproperty 
balloonText:String  [read-write]

Balloon text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[total]], [[category]]. You can also use custom fields from your dataProvider.

The default value is [[value]].

Implementation
    public function get balloonText():String
    public function set balloonText(value:String):void
bulletConfigFieldproperty 
bulletConfigField:String  [read-write]

Name of the bullet config field. Bullet config field can contain an object which will be passed to the bullet using set bulletConfig method.

Implementation
    public function get bulletConfigField():String
    public function set bulletConfigField(value:String):void
bulletFieldproperty 
bulletField:String  [read-write]

Name of the bullet field in your dataProvider.

Implementation
    public function get bulletField():String
    public function set bulletField(value:String):void
bulletSizeFieldproperty 
bulletSizeField:String  [read-write]

Name of the bullet size field in your dataProvider.

Implementation
    public function get bulletSizeField():String
    public function set bulletSizeField(value:String):void
categoryFieldproperty 
categoryField:String  [read-write]

Name of the category field (only required if a separate dataProvider for this graph is set). Uses chart's category field if not set any.

Implementation
    public function get categoryField():String
    public function set categoryField(value:String):void
centerCustomBulletsproperty 
centerCustomBullets:Boolean  [read-write]

Specifies whether custom bullets should be centered or not.

The default value is false.

Implementation
    public function get centerCustomBullets():Boolean
    public function set centerCustomBullets(value:Boolean):void
closeFieldproperty 
closeField:String  [read-write]

Name of the close field (used by candlesticks and ohlc) in your dataProvider.

Implementation
    public function get closeField():String
    public function set closeField(value:String):void
colorFieldproperty 
colorField:String  [read-write]

Name of the color field in your dataProvider.

Implementation
    public function get colorField():String
    public function set colorField(value:String):void
combineSeriesproperty 
combineSeries:Boolean  [read-write]

Set this to true if you set a separate data provider for this graph and your data has series which are not included in the main data provider and you want the chart to combine series from both data providers.

The default value is false.

Implementation
    public function get combineSeries():Boolean
    public function set combineSeries(value:Boolean):void
customBulletproperty 
customBullet:*  [read-write]

Custom bullet (class or path to file name).

Implementation
    public function get customBullet():*
    public function set customBullet(value:*):void
customBulletFieldproperty 
customBulletField:String  [read-write]

Name of the custom bullet field in your dataProvider.

Implementation
    public function get customBulletField():String
    public function set customBulletField(value:String):void
dataPointCountproperty 
dataPointCount:Number  [read-only]

returns number of data points with not null value

Implementation
    public function get dataPointCount():Number
dataProviderproperty 
dataProvider:Object  [read-write]

Specifies the data provider for the graph, in case it is different from Chart's data provider.

This property can accept an Array, ArrayCollection or IList.

Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
descriptionFieldproperty 
descriptionField:String  [read-write]

Name of the description field in your dataProvider.

Implementation
    public function get descriptionField():String
    public function set descriptionField(value:String):void
fillColorsFieldproperty 
fillColorsField:String  [read-write]

Name of the fill colors field in your dataProvider. Using this field you can fill individual columns or candlesticks with custom color gradients.

Implementation
    public function get fillColorsField():String
    public function set fillColorsField(value:String):void
hiddenproperty 
hidden:Boolean  [read-write]

Specifies whether the graph is hidden. Do not use this to show/hide the graph, use hideGraph(graph) and showGraph(graph) methods instead.

The default value is false.

Implementation
    public function get hidden():Boolean
    public function set hidden(value:Boolean):void
highFieldproperty 
highField:String  [read-write]

Name of the high field (used by candlesticks and ohlc) in your dataProvider.

Implementation
    public function get highField():String
    public function set highField(value:String):void
yAxisproperty 
yAxis:ValueAxis  [read-write]

XY chart only: specifies which vertical value axis the graph will use. Will use the first vertical value axis if not set.

Implementation
    public function get yAxis():ValueAxis
    public function set yAxis(value:ValueAxis):void
yFieldproperty 
yField:String  [read-write]

Name of the y field in your dataProvider (XY chart only).

Implementation
    public function get yField():String
    public function set yField(value:String):void
ignoreOpenValueproperty 
ignoreOpenValue:Boolean  [read-write]

line and step line graphs can show "ranges" - fills between "open" and "value" values. in order to achieve this, openField must be specified and this setting, ignoreOpenValue should be set to false.

The default value is true.

Implementation
    public function get ignoreOpenValue():Boolean
    public function set ignoreOpenValue(value:Boolean):void
includeInMinMaxproperty 
includeInMinMax:Boolean  [read-write]

Whether to include this graph when calculating min and max value of the axis.

The default value is true.

Implementation
    public function get includeInMinMax():Boolean
    public function set includeInMinMax(value:Boolean):void
itemColorsproperty 
itemColors:Array  [read-write]

Every data item (column, bullet) can use a different color from this array.

The default value is undefined.

Implementation
    public function get itemColors():Array
    public function set itemColors(value:Array):void
labelTextproperty 
labelText:String  [read-write]

Value label text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[total]], [[category]]. You can also use custom fields from your dataProvider.

The default value is undefined.

Implementation
    public function get labelText():String
    public function set labelText(value:String):void
legendValueTextproperty 
legendValueText:String  [read-write]

Legend value text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[total]], [[category]] You can also use custom fields from your dataProvider. If not set, uses Legend's valueText.

Implementation
    public function get legendValueText():String
    public function set legendValueText(value:String):void
lowFieldproperty 
lowField:String  [read-write]

Name of the low field (used by candlesticks and ohlc) in your dataProvider.

Implementation
    public function get lowField():String
    public function set lowField(value:String):void
markerTypeproperty 
markerType:String  [read-write]

Legend marker type. You can set legend marker (key) type for individual graphs. Possible values are: "square", "circle", "line", "dashedLine", "triangleUp", "triangleDown", "bubble".

The default value is undefined.

Implementation
    public function get markerType():String
    public function set markerType(value:String):void
maxBulletSizeproperty 
maxBulletSize:Number  [read-write]

Maximum size of a bullet (XY chart, when bullet's size depends on a value).

The default value is 50.

Implementation
    public function get maxBulletSize():Number
    public function set maxBulletSize(value:Number):void
minBulletSizeproperty 
minBulletSize:Number  [read-write]

Minimum size of a bullet (XY chart, when bullet's size depends on a value).

The default value is 0.

Implementation
    public function get minBulletSize():Number
    public function set minBulletSize(value:Number):void
negativeBaseproperty 
negativeBase:Number  [read-write]

If you use different colors for your negative values, a graph below zero line is filled with negativeColor. With this property you can define a different base value at which colors should be changed to negative colors.

The default value is 0.

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

An instance of mx.formatters.NumberFormatter. The graph uses this class to format the numbers. Uses Chart's numberFormatter if not defined.

The default value is undefined.

Implementation
    public function get numberFormatter():NumberFormatter
    public function set numberFormatter(value:NumberFormatter):void
openFieldproperty 
openField:String  [read-write]

Name of the open field (used by floating columns, candlesticks and ohlc) in your dataProvider. It can also be used by line and step line graphs, but you should set ignoreOpenValue to false in this case.

Implementation
    public function get openField():String
    public function set openField(value:String):void
pointPositionproperty 
pointPosition:String  [read-write]

Specifies where data points should be placed. They can be placed on the beginning of the period (day, hour, etc) or in the middle (only when parseDates property of categoryAxis is set to true). This setting affects Serial chart only. Possible values are "start" and "middle".

The default value is middle.

Implementation
    public function get pointPosition():String
    public function set pointPosition(value:String):void
seriesIdFieldproperty 
seriesIdField:String  [read-write]

Name of the category field (only required if a separate dataProvider for this graph is set). Uses chart's category field if not set any.

Implementation
    public function get seriesIdField():String
    public function set seriesIdField(value:String):void
showAllValueLabelsproperty 
showAllValueLabels:Boolean  [read-write]

if graph's type is column and labelText is set, graph hides labels which do not fit into the column's space. If you don't want these labels to be hidden, set this to true.

The default value is false.

Implementation
    public function get showAllValueLabels():Boolean
    public function set showAllValueLabels(value:Boolean):void
showBalloonproperty 
showBalloon:Boolean  [read-write]

Specifies whether the value balloon of this graph is shown on the indicator.

The default value is true.

Implementation
    public function get showBalloon():Boolean
    public function set showBalloon(value:Boolean):void
showBalloonAtproperty 
showBalloonAt:String  [read-write]

Specifies graphs value at which cursor is showed. This is only important for candlestick and ohlc charts, also if column chart has "open" value. Possible values are: "open", "close", "high", "low".

The default value is close.

Implementation
    public function get showBalloonAt():String
    public function set showBalloonAt(value:String):void
showBulletAtproperty 
showBulletAt:String  [read-write]

Specifies graphs value at which balloon is showed. This is only important for candlestick and ohlc charts. Possible values are: "open", "close", "high", "low".

The default value is close.

Implementation
    public function get showBulletAt():String
    public function set showBulletAt(value:String):void
stackableproperty 
stackable:Boolean  [read-write]

If the value axis of this graph has stack types like "regular" or "100%" you can exclude this graph from stacking.

The default value is true.

Implementation
    public function get stackable():Boolean
    public function set stackable(value:Boolean):void
typeproperty 
type:String  [read-write]

Type of the graph. Possible values are: line, column, step, smoothedLine, candlestick, ohlc. XY and Radar charts can only display "line" type graphs.

The default value is line.

Implementation
    public function get type():String
    public function set type(value:String):void
titleproperty 
title:String  [read-write]

Graph title.

The default value is undefined.

Implementation
    public function get title():String
    public function set title(value:String):void
urlFieldproperty 
urlField:String  [read-write]

Name of the url field in your dataProvider.

Implementation
    public function get urlField():String
    public function set urlField(value:String):void
valueAxisproperty 
valueAxis:ValueAxis  [read-write]

Specifies which value axis the graph will use. Will use the first value axis if not set.

Implementation
    public function get valueAxis():ValueAxis
    public function set valueAxis(value:ValueAxis):void
valueFieldproperty 
valueField:String  [read-write]

Name of the value field in your dataProvider.

Implementation
    public function get valueField():String
    public function set valueField(value:String):void
visibleInLegendproperty 
visibleInLegend:Boolean  [read-write]

Specifies whether this graph should be shown in the Legend.

The default value is true.

Implementation
    public function get visibleInLegend():Boolean
    public function set visibleInLegend(value:Boolean):void
xAxisproperty 
xAxis:ValueAxis  [read-write]

XY chart only: specifies which horizontal value axis the graph will use. Will use the first horizontal value axis if not set.

Implementation
    public function get xAxis():ValueAxis
    public function set xAxis(value:ValueAxis):void
xFieldproperty 
xField:String  [read-write]

Name of the x field in your dataProvider (XY chart only).

Implementation
    public function get xField():String
    public function set xField(value:String):void
Constructor detail
AmGraph()constructor
public function AmGraph()

Constructor.

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

Hide bullets.

showBullets()method 
public function showBullets():void

Show bullets.

Examples
stackedAreaChart
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                xmlns:amcharts="http://www.amcharts.com/com_internal"
                layout="absolute"
                backgroundColor="#FFFFFF"
                width="100%"
                height="100%" viewSourceURL="srcview/index.html">
    
    <mx:Script> 
        <![CDATA[
            import mx.collections.ArrayCollection;
            
            [Bindable]
            private var chartData:ArrayCollection = new ArrayCollection([
                {year:"2000",a:20,b:5,c:10,d:5},
                {year:"2001",a:21,b:6,c:10,d:10},
                {year:"2002",a:24,b:7,c:9,d:10},
                {year:"2003",a:21,b:5,c:10,d:8},
                {year:"2004",a:24,b:4,c:10,d:8},
                {year:"2005",a:26,b:8,c:10,d:9},
                {year:"2006",a:27,b:9,c:12,d:9},
                {year:"2007",a:29,b:9,c:13,d:8},
                {year:"2008",a:30,b:10,c:14,d:7},
                {year:"2009",a:26,b:12,c:15,d:8},
                {year:"2010",a:24,b:11,c:13,d:9},
                {year:"2011",a:22,b:14,c:11,d:8},
                {year:"2012",a:21,b:16,c:11,d:7},
                {year:"2013",a:20,b:17,c:13,d:6}, 
                {year:"2014",a:15,b:19,c:13,d:5},
                {year:"2015",a:14,b:18,c:14,d:3}
                
            ]);    
            
        ]]>
    </mx:Script>
    
    <mx:HBox backgroundColor="#FFFFFF" width="100%" height="100%">
        <mx:VBox width="50%" height="100%">                
            <!-- first chart -->
            <amcharts:AmSerialChart
                width="100%"
                height="100%"
                id="chart"
                dataProvider="{chartData}"
                categoryField="year"
                plotAreaFillAlphas="[0]">
                <amcharts:graphs>
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample a" 
                        valueField="a" 
                        type="line" 
                        lineThickness="2"
                        lineAlpha="1" 
                        fillAlphas="[0.7]"
                        showBalloon="false"/>                        
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample b" 
                        valueField="b" 
                        type="line" 
                        lineThickness="2"
                        lineAlpha="1" 
                        fillAlphas="[0.7]"/>
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample c" 
                        valueField="c" 
                        type="line" 
                        lineThickness="2"
                        lineAlpha="1" 
                        fillAlphas="[0.7]"
                        showBalloon="false"/>
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample d" 
                        valueField="d" 
                        type="line" 
                        lineThickness="2"
                        lineAlpha="1"
                        fillAlphas="[0.7]"/>
                </amcharts:graphs>
                
                <amcharts:valueAxes>
                    <amcharts:ValueAxis stackType="regular" gridAlpha="0.1"/>                    
                </amcharts:valueAxes>
                
                <amcharts:categoryAxis>
                    <amcharts:CategoryAxis gridAlpha="0.1" fontWeight="bold" startOnAxis="true" position="top"/>
                </amcharts:categoryAxis>
                
                <amcharts:chartScrollbar>
                    <amcharts:ChartScrollbar height="20"/>                    
                </amcharts:chartScrollbar>
                
                <amcharts:chartCursor>
                    <amcharts:ChartCursor/>                    
                </amcharts:chartCursor>
                
            </amcharts:AmSerialChart>
            
            <amcharts:AmLegend 
                fontWeight="bold"
                reversedOrder="true" 
                rollOverGraphAlpha="0.1" 
                dataProvider="{chart}" 
                width="100%"
                marginLeft="35"
                marginRight="15"
                markerType="circle"
                switchType="v"/>
            
        </mx:VBox>
        
        <mx:VBox width="50%" height="100%">
            <!-- Second chart - almost the same, only rotated -->
            <amcharts:AmSerialChart
                rotate="true"
                width="100%"
                height="100%"
                id="chart2"
                dataProvider="{chartData}"
                categoryField="year"
                plotAreaFillAlphas="[0]">
                <amcharts:graphs>
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample a" 
                        valueField="a" 
                        type="step" 
                        lineThickness="2"
                        lineAlpha="1" 
                        fillAlphas="[0.7]"
                        balloonText="[[percents]]%"/>                        
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample b" 
                        valueField="b" 
                        type="step" 
                        lineThickness="2"
                        lineAlpha="1" 
                        fillAlphas="[0.7]"
                        showBalloon="false"
                        balloonText="[[percents]]%"/>
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample c" 
                        valueField="c" 
                        type="step" 
                        lineThickness="2"
                        lineAlpha="1" 
                        fillAlphas="[0.7]"
                        showBalloon="false"
                        balloonText="[[percents]]%"/>
                    <amcharts:AmGraph 
                        color="#FFFFFF" 
                        title="Sample d" 
                        valueField="d" 
                        type="step" 
                        lineThickness="2"
                        lineAlpha="1"
                        fillAlphas="[0.7]"
                        balloonText="[[percents]]%"/>
                </amcharts:graphs>
                
                <amcharts:valueAxes>
                    <amcharts:ValueAxis stackType="100%" gridAlpha="0.1"/>                    
                </amcharts:valueAxes>
                
                <amcharts:categoryAxis>
                    <amcharts:CategoryAxis gridAlpha="0.1" fontWeight="bold" startOnAxis="true" position="left"/>
                </amcharts:categoryAxis>
                
                <amcharts:chartScrollbar>
                    <amcharts:ChartScrollbar height="20"/>                    
                </amcharts:chartScrollbar>
                
                <amcharts:chartCursor>
                    <amcharts:ChartCursor/>                    
                </amcharts:chartCursor>
                
            </amcharts:AmSerialChart>
            
            <amcharts:AmLegend 
                markerType="square"
                fontWeight="bold"
                reversedOrder="true" 
                rollOverGraphAlpha="0.1" 
                dataProvider="{chart2}" 
                width="100%"
                marginLeft="52"
                marginRight="15"
                switchType="x"
                valueText="[[percents]]%"
                valueAlign="right"/>                
        </mx:VBox>            
    </mx:HBox>
    
</mx:Application>