Packagecom.amcharts.stock
Classpublic class StockGraph
InheritanceStockGraph Inheritance AmGraph Inheritance mx.core.UIComponent

StockGraph class. Extends AmGraph class with some additional properties.



Public Properties
 PropertyDefined by
 InheritedalphaField : String
Name of the alpha field in your dataProvider.
AmGraph
 InheritedballoonText : String
Balloon text.
AmGraph
 InheritedbulletConfigField : String
Name of the bullet config field.
AmGraph
 InheritedbulletField : String
Name of the bullet field in your dataProvider.
AmGraph
 InheritedbulletSizeField : String
Name of the bullet size field in your dataProvider.
AmGraph
 InheritedcategoryField : String
Name of the category field (only required if a separate dataProvider for this graph is set).
AmGraph
 InheritedcenterCustomBullets : Boolean
Specifies whether custom bullets should be centered or not.
AmGraph
  closeField : String
[write-only] Name of the close field.
StockGraph
 InheritedcolorField : String
Name of the color field in your dataProvider.
AmGraph
 InheritedcombineSeries : 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
  comparable : Boolean
Specifies whether this graph will be compared if some data set is selected for comparing.
StockGraph
  compareField : String
Specifies a field to be used to generate comparing graph.
StockGraph
  compareGraphBalloonColor : Number
Balloon color of comparing graph.
StockGraph
  compareGraphBullet : String
Bullet of comparing graph.
StockGraph
  compareGraphCornerRadiusBottom : Number
Corner radius of comparing graphs columns bottom.
StockGraph
  compareGraphCornerRadiusTop : Number
Corner radius of comparing graphs columns top.
StockGraph
  compareGraphDashLength : Number
Dash length of compare graph.
StockGraph
  compareGraphFillAlphas : Array
Array of fill alphas of comparing graphs.
StockGraph
  compareGraphFillColors : Array
Array of fill colors of comparing graph.
StockGraph
  compareGraphLineAlpha : Number
Opacity of comparing graph line.
StockGraph
  compareGraphLineThickness : Number
Thickness of compare graph.
StockGraph
  compareGraphNegativeFillAlphas : Array
Array of fill alphas of comparing graph when values are negative.
StockGraph
  compareGraphNegativeFillColors : Array
Array of fill colors of comparing graphs when values are negative.
StockGraph
  compareGraphType : String
Type of comparing graph.
StockGraph
  compareGraphVisibleInLegend : Boolean
Specifies if compare graph is visible in legend.
StockGraph
 InheritedcustomBullet : *
Custom bullet (class or path to file name).
AmGraph
 InheritedcustomBulletField : String
Name of the custom bullet field in your dataProvider.
AmGraph
 InheriteddataPointCount : Number
returns number of data points with not null value
AmGraph
 InheriteddataProvider : Object
Specifies the data provider for the graph, in case it is different from Chart's data provider.
AmGraph
  dataSet : DataSet
You can force graph to use different data set.
StockGraph
 InheriteddescriptionField : String
Name of the description field in your dataProvider.
AmGraph
 InheritedfillColorsField : String
Name of the fill colors field in your dataProvider.
AmGraph
 Inheritedhidden : Boolean
Specifies whether the graph is hidden.
AmGraph
  highField : String
[write-only] Name of the high field.
StockGraph
 InheritedyAxis : ValueAxis
XY chart only: specifies which vertical value axis the graph will use.
AmGraph
 InheritedyField : String
Name of the y field in your dataProvider (XY chart only).
AmGraph
 InheritedignoreOpenValue : Boolean
line and step line graphs can show "ranges" - fills between "open" and "value" values.
AmGraph
 InheritedincludeInMinMax : Boolean
Whether to include this graph when calculating min and max value of the axis.
AmGraph
 InheriteditemColors : Array
Every data item (column, bullet) can use a different color from this array.
AmGraph
 InheritedlabelText : String
Value label text.
AmGraph
 InheritedlegendValueText : String
Legend value text.
AmGraph
  lowField : String
[write-only] Name of the low field.
StockGraph
 InheritedmarkerType : String
Legend marker type.
AmGraph
 InheritedmaxBulletSize : Number
Maximum size of a bullet (XY chart, when bullet's size depends on a value).
AmGraph
 InheritedminBulletSize : Number
Minimum size of a bullet (XY chart, when bullet's size depends on a value).
AmGraph
 InheritednegativeBase : Number
If you use different colors for your negative values, a graph below zero line is filled with negativeColor.
AmGraph
 InheritednumberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmGraph
  openField : String
Name of the open field.
StockGraph
  openPeriodValue : String
openPeriodValue is used in a quite rare scenario only: in case you have openField set for line/step/column graph types and when grouping data different period value than set in periodValue property needs to be used (min for example), then you have to setit here.
StockGraph
  periodValue : String
When data is grouped to periods, the graph must know which period value should be used.
StockGraph
 InheritedpointPosition : String
Specifies where data points should be placed.
AmGraph
  resetTitleOnDataSetChange : Boolean
For internal use only - in case initial graph title is not set, this is set to true for the chart.
StockGraph
 InheritedseriesIdField : String
Name of the category field (only required if a separate dataProvider for this graph is set).
AmGraph
 InheritedshowAllValueLabels : Boolean
if graph's type is column and labelText is set, graph hides labels which do not fit into the column's space.
AmGraph
 InheritedshowBalloon : Boolean
Specifies whether the value balloon of this graph is shown on the indicator.
AmGraph
 InheritedshowBalloonAt : String
Specifies graphs value at which cursor is showed.
AmGraph
 InheritedshowBulletAt : String
Specifies graphs value at which balloon is showed.
AmGraph
 Inheritedstackable : Boolean
If the value axis of this graph has stack types like "regular" or "100%" you can exclude this graph from stacking.
AmGraph
 Inheritedtype : String
Type of the graph.
AmGraph
 Inheritedtitle : String
Graph title.
AmGraph
 InheritedurlField : String
Name of the url field in your dataProvider.
AmGraph
  useDataSetColors : Boolean
Specifies whether data set color should be used as this graph's lineColor.
StockGraph
 InheritedvalueAxis : ValueAxis
Specifies which value axis the graph will use.
AmGraph
  valueField : String
[write-only] Name of the value field.
StockGraph
 InheritedvisibleInLegend : Boolean
Specifies whether this graph should be shown in the Legend.
AmGraph
 InheritedxAxis : ValueAxis
XY chart only: specifies which horizontal value axis the graph will use.
AmGraph
 InheritedxField : String
Name of the x field in your dataProvider (XY chart only).
AmGraph
Public Methods
 MethodDefined by
  
returns compared graph of data set
StockGraph
 Inherited
hideBullets():void
Hide bullets.
AmGraph
 Inherited
showBullets():void
Show bullets.
AmGraph
Styles
 StyleDescriptionDefined by
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Balloon color.
AmGraph
 Inherited Type: String   CSS Inheritance: no
Bullet type.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Bullet opacity.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Bullet border opacity.
AmGraph
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Bullet border color.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Bullet border thickness.
AmGraph
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Bullet color.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Bullet offset.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Bullet size.
AmGraph
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label.
AmGraph
 Inherited Type: Boolean   CSS Inheritance: no
Specifies whether to connect data points if data is missing.
AmGraph
 Inherited Type: String   CSS Inheritance: no
Corner radius of columns' bottom.
AmGraph
 Inherited Type: String   CSS Inheritance: no
Corner radius of columns' top.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
If bulletsEnabled of ChartCurosor is true, a bullet on each graph follows the cursor.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Dash length.
AmGraph
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled.
AmGraph
 Inherited Type: Array   CSS Inheritance: no
Array of fill opacities.
AmGraph
 Inherited Type: Array   Format: Color   CSS Inheritance: no
Array of fill colors.
AmGraph
 Inherited Type: String   CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields.
AmGraph
 Inherited Type: String   CSS Inheritance: yes
Name of the font to use.
AmGraph
 Inherited Type: String   CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls.
AmGraph
 Inherited Type: Number   CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls.
AmGraph
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Height of the text, in pixels.
AmGraph
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is italic font.
AmGraph
 Inherited Type: Number   CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls.
AmGraph
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is boldface.
AmGraph
 Inherited Type: String   CSS Inheritance: no
Orientation of the gradient fills (only for "column" graph type).
AmGraph
 Inherited Type: Number   CSS Inheritance: no
If there are more data points than hideBulletsCount, the bullets will not be shown.
AmGraph
 Inherited Type: Boolean   CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false).
AmGraph
 Inherited Type: String   CSS Inheritance: no
Position of data label.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Legend marker opacity.
AmGraph
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Legend marker color.
AmGraph
 Inherited Type: Number   CSS Inheritance: yes
The number of additional pixels to appear between each character.
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Opacity of the line (or column border).
AmGraph
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of the line (or column border).
AmGraph
 Inherited Type: Number   CSS Inheritance: no
Specifies thickness of the graph line (or column border).
AmGraph
 Inherited Type: Array   CSS Inheritance: no
Array of fill opacities when value is negative.
AmGraph
 Inherited Type: Array   Format: Color   CSS Inheritance: no
Array of fill colors when value is negative.
AmGraph
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Color of the line (or column) when the values are negative.
AmGraph
 Inherited Type: String   CSS Inheritance: yes
Alignment of text within a container.
AmGraph
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is underlined.
AmGraph
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels.
AmGraph
Property detail
closeFieldproperty
closeField:String  [write-only]

Name of the close field. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object.

Implementation
    public function set closeField(value:String):void
comparableproperty 
comparable:Boolean  [read-write]

Specifies whether this graph will be compared if some data set is selected for comparing.

The default value is false.

Implementation
    public function get comparable():Boolean
    public function set comparable(value:Boolean):void
compareFieldproperty 
compareField:String  [read-write]

Specifies a field to be used to generate comparing graph. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object.

Implementation
    public function get compareField():String
    public function set compareField(value:String):void
compareGraphBalloonColorproperty 
compareGraphBalloonColor:Number  [read-write]

Balloon color of comparing graph.

Implementation
    public function get compareGraphBalloonColor():Number
    public function set compareGraphBalloonColor(value:Number):void
compareGraphBulletproperty 
compareGraphBullet:String  [read-write]

Bullet of comparing graph.

Implementation
    public function get compareGraphBullet():String
    public function set compareGraphBullet(value:String):void
compareGraphCornerRadiusBottomproperty 
compareGraphCornerRadiusBottom:Number  [read-write]

Corner radius of comparing graphs columns bottom.

Implementation
    public function get compareGraphCornerRadiusBottom():Number
    public function set compareGraphCornerRadiusBottom(value:Number):void
compareGraphCornerRadiusTopproperty 
compareGraphCornerRadiusTop:Number  [read-write]

Corner radius of comparing graphs columns top.

Implementation
    public function get compareGraphCornerRadiusTop():Number
    public function set compareGraphCornerRadiusTop(value:Number):void
compareGraphDashLengthproperty 
compareGraphDashLength:Number  [read-write]

Dash length of compare graph.

Implementation
    public function get compareGraphDashLength():Number
    public function set compareGraphDashLength(value:Number):void
compareGraphFillAlphasproperty 
compareGraphFillAlphas:Array  [read-write]

Array of fill alphas of comparing graphs.

Implementation
    public function get compareGraphFillAlphas():Array
    public function set compareGraphFillAlphas(value:Array):void
compareGraphFillColorsproperty 
compareGraphFillColors:Array  [read-write]

Array of fill colors of comparing graph.

Implementation
    public function get compareGraphFillColors():Array
    public function set compareGraphFillColors(value:Array):void
compareGraphLineAlphaproperty 
compareGraphLineAlpha:Number  [read-write]

Opacity of comparing graph line.

Implementation
    public function get compareGraphLineAlpha():Number
    public function set compareGraphLineAlpha(value:Number):void
compareGraphLineThicknessproperty 
compareGraphLineThickness:Number  [read-write]

Thickness of compare graph.

Implementation
    public function get compareGraphLineThickness():Number
    public function set compareGraphLineThickness(value:Number):void
compareGraphNegativeFillAlphasproperty 
compareGraphNegativeFillAlphas:Array  [read-write]

Array of fill alphas of comparing graph when values are negative.

Implementation
    public function get compareGraphNegativeFillAlphas():Array
    public function set compareGraphNegativeFillAlphas(value:Array):void
compareGraphNegativeFillColorsproperty 
compareGraphNegativeFillColors:Array  [read-write]

Array of fill colors of comparing graphs when values are negative.

Implementation
    public function get compareGraphNegativeFillColors():Array
    public function set compareGraphNegativeFillColors(value:Array):void
compareGraphTypeproperty 
compareGraphType:String  [read-write]

Type of comparing graph. Possible values are: line, column, step, smoothedLine.

Implementation
    public function get compareGraphType():String
    public function set compareGraphType(value:String):void
compareGraphVisibleInLegendproperty 
compareGraphVisibleInLegend:Boolean  [read-write]

Specifies if compare graph is visible in legend.

The default value is true.

Implementation
    public function get compareGraphVisibleInLegend():Boolean
    public function set compareGraphVisibleInLegend(value:Boolean):void
dataSetproperty 
dataSet:DataSet  [read-write]

You can force graph to use different data set. Note, chart will only display values for date range of the main data set.

Implementation
    public function get dataSet():DataSet
    public function set dataSet(value:DataSet):void
highFieldproperty 
highField:String  [write-only]

Name of the high field. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object.

Implementation
    public function set highField(value:String):void
lowFieldproperty 
lowField:String  [write-only]

Name of the low field. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object.

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

Name of the open field. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object.

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

openPeriodValue is used in a quite rare scenario only: in case you have openField set for line/step/column graph types and when grouping data different period value than set in periodValue property needs to be used (min for example), then you have to setit here. Possible values are: Open, Low, High, Close, Average and Sum

The default value is undefined.

Implementation
    public function get openPeriodValue():String
    public function set openPeriodValue(value:String):void
periodValueproperty 
periodValue:String  [read-write]

When data is grouped to periods, the graph must know which period value should be used. Possible values are: Open, Low, High, Close, Average and Sum

The default value is Close.

Implementation
    public function get periodValue():String
    public function set periodValue(value:String):void
resetTitleOnDataSetChangeproperty 
resetTitleOnDataSetChange:Boolean  [read-write]

For internal use only - in case initial graph title is not set, this is set to true for the chart. to know that the graph title must be changed to data set title.

The default value is false.

Implementation
    public function get resetTitleOnDataSetChange():Boolean
    public function set resetTitleOnDataSetChange(value:Boolean):void
useDataSetColorsproperty 
useDataSetColors:Boolean  [read-write]

Specifies whether data set color should be used as this graph's lineColor.

The default value is true.

Implementation
    public function get useDataSetColors():Boolean
    public function set useDataSetColors(value:Boolean):void
valueFieldproperty 
valueField:String  [write-only]

Name of the value field. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object.

Implementation
    public function set valueField(value:String):void
Method detail
getComparedGraph()method
public function getComparedGraph(dataSet:DataSet):AmGraph

returns compared graph of data set

Parameters
dataSet:DataSet

Returns
AmGraph