| Package | com.amcharts.stock |
| Class | public class StockGraph |
| Inheritance | StockGraph AmGraph mx.core.UIComponent |
| Property | Defined 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 [write-only]
Name of the close field.
| StockGraph | ||
![]() | 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 | |
| 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 | ||
![]() | customBullet : *
Custom bullet (class or path to file name).
| AmGraph | |
![]() | customBulletField : String
Name of the custom bullet field in your dataProvider.
| AmGraph | |
![]() | dataPointCount : Number
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 | |
| dataSet : DataSet
You can force graph to use different data set.
| StockGraph | ||
![]() | 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 [write-only]
Name of the high field.
| StockGraph | ||
![]() | 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 [write-only]
Name of the low field.
| StockGraph | ||
![]() | 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.
| 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 | ||
![]() | pointPosition : 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 | ||
![]() | 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 | |
| useDataSetColors : Boolean
Specifies whether data set color should be used as this graph's lineColor.
| StockGraph | ||
![]() | valueAxis : ValueAxis
Specifies which value axis the graph will use.
| AmGraph | |
| valueField : String [write-only]
Name of the value field.
| StockGraph | ||
![]() | 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 | |
| Method | Defined by | ||
|---|---|---|---|
|
returns compared graph of data set
| StockGraph | ||
![]() |
hideBullets():void
Hide bullets.
| AmGraph | |
![]() |
showBullets():void
Show bullets.
| AmGraph | |
| closeField | property |
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
| comparable | property |
comparable:Boolean [read-write]Specifies whether this graph will be compared if some data set is selected for comparing.
The default value is false.
public function get comparable():Boolean
public function set comparable(value:Boolean):void
| compareField | property |
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
| compareGraphBalloonColor | property |
compareGraphBalloonColor:Number [read-write]Balloon color of comparing graph.
Implementation public function get compareGraphBalloonColor():Number
public function set compareGraphBalloonColor(value:Number):void
| compareGraphBullet | property |
compareGraphBullet:String [read-write]Bullet of comparing graph.
Implementation public function get compareGraphBullet():String
public function set compareGraphBullet(value:String):void
| compareGraphCornerRadiusBottom | property |
compareGraphCornerRadiusBottom:Number [read-write]Corner radius of comparing graphs columns bottom.
Implementation public function get compareGraphCornerRadiusBottom():Number
public function set compareGraphCornerRadiusBottom(value:Number):void
| compareGraphCornerRadiusTop | property |
compareGraphCornerRadiusTop:Number [read-write]Corner radius of comparing graphs columns top.
Implementation public function get compareGraphCornerRadiusTop():Number
public function set compareGraphCornerRadiusTop(value:Number):void
| compareGraphDashLength | property |
compareGraphDashLength:Number [read-write]Dash length of compare graph.
Implementation public function get compareGraphDashLength():Number
public function set compareGraphDashLength(value:Number):void
| compareGraphFillAlphas | property |
compareGraphFillAlphas:Array [read-write]Array of fill alphas of comparing graphs.
Implementation public function get compareGraphFillAlphas():Array
public function set compareGraphFillAlphas(value:Array):void
| compareGraphFillColors | property |
compareGraphFillColors:Array [read-write]Array of fill colors of comparing graph.
Implementation public function get compareGraphFillColors():Array
public function set compareGraphFillColors(value:Array):void
| compareGraphLineAlpha | property |
compareGraphLineAlpha:Number [read-write]Opacity of comparing graph line.
Implementation public function get compareGraphLineAlpha():Number
public function set compareGraphLineAlpha(value:Number):void
| compareGraphLineThickness | property |
compareGraphLineThickness:Number [read-write]Thickness of compare graph.
Implementation public function get compareGraphLineThickness():Number
public function set compareGraphLineThickness(value:Number):void
| compareGraphNegativeFillAlphas | property |
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
| compareGraphNegativeFillColors | property |
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
| compareGraphType | property |
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
| compareGraphVisibleInLegend | property |
compareGraphVisibleInLegend:Boolean [read-write]Specifies if compare graph is visible in legend.
The default value is true.
public function get compareGraphVisibleInLegend():Boolean
public function set compareGraphVisibleInLegend(value:Boolean):void
| dataSet | property |
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
| highField | property |
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
| lowField | property |
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
| openField | property |
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
| openPeriodValue | property |
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.
public function get openPeriodValue():String
public function set openPeriodValue(value:String):void
| periodValue | property |
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.
public function get periodValue():String
public function set periodValue(value:String):void
| resetTitleOnDataSetChange | property |
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.
public function get resetTitleOnDataSetChange():Boolean
public function set resetTitleOnDataSetChange(value:Boolean):void
| useDataSetColors | property |
useDataSetColors:Boolean [read-write]Specifies whether data set color should be used as this graph's lineColor.
The default value is true.
public function get useDataSetColors():Boolean
public function set useDataSetColors(value:Boolean):void
| valueField | property |
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
| getComparedGraph | () | method |
public function getComparedGraph(dataSet:DataSet):AmGraphreturns compared graph of data set
ParametersdataSet:DataSet |
AmGraph |