Packagecom.amcharts.stock
Classpublic class StockPanel
InheritanceStockPanel Inheritance AmSerialChart Inheritance AmRectangularChart Inheritance AmCoordinateChart Inheritance AmChart Inheritance mx.core.UIComponent

Stock panel Class. Extends AmSerialChart with some additional properties.



Public Properties
 PropertyDefined by
  allowTurningOff : Boolean
Specifies whether x button will be displayed near the panel.
StockPanel
 InheritedautoMargins : Boolean
Specifies if margins of a chart where axes are will be calculated automatically by the maximum width of a axis label.
AmRectangularChart
 Inheritedballoon : AmBalloon
An instance of com.amcharts.AmBalloon.
AmChart
 InheritedcategoryAxis : CategoryAxis
Category Axis of the chart.
AmSerialChart
 InheritedcategoryField : String
Category field name tells the chart the name of the field in your dataProvider object which will be used for category axis values.
AmSerialChart
  chartCursor : ChartCursor
[write-only] Chart cursor.
StockPanel
 InheritedchartScrollbar : ChartScrollbar
Chart scrollbar.
AmRectangularChart
 InheritedchartType : String
returns chart type (serial, xy, or radar).
AmCoordinateChart
 InheritedclipContent : Boolean
Specifies if the chart contents which goes outside the chart area should be clipped or not.
AmChart
 InheritedcolumnsAboveLines : Boolean
Specifies if columns should be drawn above lines or behind.
AmSerialChart
 InheriteddataProvider : Object
Specifies the data provider for the chart.
AmSerialChart
  drawingEnabled : Boolean
If true, user can draw objects on a panel.
StockPanel
  drawingIconsEnabled : Boolean
If true, drawing icons will be displayed in top-right corner
StockPanel
  drawOnAxis : ValueAxis
[write-only] Specifies on which value axis user can draw trend lines.
StockPanel
 InheritedendDate : Date
Returns date (only if category axis parses dates) to which the chart is currently displayed.
AmSerialChart
 InheritedendIndex : Number
Returns category index to which the chart is currently displayed.
AmSerialChart
 Inheritedgraphs : Array
The array of graphs belonging to this chart.
AmCoordinateChart
 Inheritedlegend : AmLegend
Chart legend.
AmChart
 InheritedmaxSelectedSeries : Number
Maximum number of series allowed to select.
AmSerialChart
 InheritedmaxSelectedTime : Number
The longest time span allowed to select (in milliseconds).
AmSerialChart
 InheritedmouseWheelEnabled : Boolean
Specifies if zooming/scrolling with mouse wheel is enabled.
AmRectangularChart
 InheritednumberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmChart
  panelHeaderPaddingBottom : Number
Distance from bottom border to the panel header.
StockPanel
  panelHeaderPaddingLeft : Number
Distance from left border to the panel header.
StockPanel
  panelHeaderPaddingRight : Number
Distance from right border to the panel header.
StockPanel
  panelHeaderPaddingTop : Number
Distance from top border to the panel header.
StockPanel
 InheritedpercentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmChart
  percentHeight : Number
Relative heigth of a panel.
StockPanel
 InheritedprefixesOfBigNumbers : Array
Array of objects with prefixes for big numbers.
AmChart
 InheritedprefixesOfSmallNumbers : Array
Array of objects with prefixes for small numbers.
AmChart
  recalculateToPercents : String
Specifies when values should be recalculated to percents.
StockPanel
 Inheritedrotate : Boolean
If you set this to true, the chart will be rotated by 90 degrees (the columns will become bars).
AmSerialChart
 InheritedscrollbarOnly : Boolean
Sometimes there is no need to generate chart, but only a scrollbar.
AmSerialChart
 InheritedseriesIdField : String
Series is field name tells the chart the name of the field in your dataProvider object which contains series id.
AmSerialChart
  showCategoryAxis : Boolean
Specifies whether this panel will show category axis.
StockPanel
 InheritedstartDate : Date
Returns date (only if category axis parses dates) from which the chart is currently displayed.
AmSerialChart
 InheritedstartIndex : Number
Returns category index from which the chart is currently displayed.
AmSerialChart
  stockGraphs : Array
The array of graphs belonging to this chart.
StockPanel
  stockLegend : StockLegend
Stock chart legend.
StockPanel
  title : String
Panel title.
StockPanel
  trendLineAlpha : Number
Trend line opacity.
StockPanel
  trendLineColor : Number
Trend line color.
StockPanel
  trendLineDashLength : Number
Trend line dash length.
StockPanel
 InheritedtrendLines : Array
Array of trend lines.
AmRectangularChart
  trendLineThickness : Number
Trend line thickness.
StockPanel
 InheritedurlTarget : String
The target of the url.
AmCoordinateChart
 InheritedusePrefixes : Boolean
If true, prefixes will be used for big and small numbers.
AmChart
 InheritedvalueAxes : Array
The array of value axes.
AmCoordinateChart
 InheritedzoomOutButton : Object
Zoom-out button, visible when chart is zoomed-in.
AmRectangularChart
 InheritedzoomOutOnDataUpdate : Boolean
Specifies if the chart should zoom out when data is updated.
AmSerialChart
 InheritedzoomOutText : String
Text in the zoom-out button.
AmRectangularChart
Public Methods
 MethodDefined by
 Inherited
Adds a graph (series) to the chart.
AmCoordinateChart
  
Adds StockGraph to StockPanel.
StockPanel
 Inherited
Adds a trend line to the chart.
AmRectangularChart
 Inherited
Adds value axis to the chart.
AmCoordinateChart
 Inherited
animateAgain():void
The animation is played only once or if you change the animation styles.
AmCoordinateChart
 Inherited
Destorys all listeners.
AmRectangularChart
 Inherited
getCategoryIndexByValue(value:String):Number
Returns index of the specified category value.
AmSerialChart
 Inherited
getGraphById(id:String):AmGraph
Returns graph by id.
AmCoordinateChart
 Inherited
Returns value Axis by id.
AmCoordinateChart
  
hideDrawingIcons(value:Boolean):void
Hides drawing icons.
StockPanel
 Inherited
hideGraph(graph:AmGraph):void
Hide the graph (if it is visible).
AmCoordinateChart
 Inherited
Hide value balloon of a graph.
AmCoordinateChart
 Inherited
highlightGraph(graph:AmGraph):void
HighlightGraph the graph.
AmSerialChart
 Inherited
In case data inside your dataProvider was changed, you can call this method to rebuild the chart.
AmChart
 Inherited
Makes the chart to recalculate margin width and redraw.
AmRectangularChart
 Inherited
Removes cursor from the chart.
AmRectangularChart
 Inherited
Removes scrollbar from the chart.
AmRectangularChart
 Inherited
removeGraph(graph:AmGraph):void
Removes graph from the chart.
AmSerialChart
  
Removes StockGraph from StockPanel.
StockPanel
 Inherited
removeTrendLine(trendLine:TrendLine):void
Removes trend line from the chart.
AmRectangularChart
 Inherited
removeValueAxis(valueAxis:ValueAxis):void
Removes value axis from the chart.
AmCoordinateChart
 Inherited
showGraph(graph:AmGraph):void
Show the graph (if it is hidden).
AmCoordinateChart
 Inherited
Show value balloon of a graph.
AmCoordinateChart
 Inherited
UnhighlightGraph the graph.
AmSerialChart
 Inherited
zoomOut():void
Zooms out.
AmSerialChart
 Inherited
zoomToCategoryValues(start:String, end:String):void
Zooms the chart by the value of the category axis.
AmSerialChart
 Inherited
zoomToDates(start:Date, end:Date):void
Zooms the chart from one date to another.
AmSerialChart
 Inherited
zoomToIndexes(start:Number, end:Number):void
Zooms the chart by the index of the category.
AmSerialChart
Protected Methods
 MethodDefined by
 Inherited
setAxisRotation(valueAxis:ValueAxis):void
AmSerialChart
Events
 EventSummaryDefined by
 Inherited Dispatched when cursor position is changed.AmSerialChart
 Inherited Dispatched when the user clicks on a data item (column/bullet).AmCoordinateChart
 Inherited Dispatched when the chart was updated with new data, when dataProvider or data inside dataProvider was changed.AmChart
 Inherited Dispatched when the user double clicks on a data item (column/bullet).AmCoordinateChart
 Inherited Dispatched when chart margin was updated (only if autoMargins is set to true) AmRectangularChart
 Inherited Dispatched when the user rolls out of the data item (column/bullet).AmCoordinateChart
 Inherited Dispatched when the user rolls over data item (column/bullet).AmCoordinateChart
 Inherited Dispatched when the chart is zoomed (even for the first time, when chart is initialized).AmSerialChart
Styles
 StyleDescriptionDefined by
 Inherited Type: Number   CSS Inheritance: no
The angle of the 3D part of plot area.
AmRectangularChart
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label.
AmChart
 Inherited Type: Array   Format: Color   CSS Inheritance: no
Specifies the colors of the graphs if the color is not set.
AmCoordinateChart
 Inherited Type: Number   CSS Inheritance: no
The gap in pixels between two columns of the same category.
AmSerialChart
 Inherited Type: Number   CSS Inheritance: no
Relative width of columns.
AmSerialChart
 Inherited Type: Number   CSS Inheritance: no
The depth of the 3D part of plot area.
AmRectangularChart
 Inherited Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Name of the font to use.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls.
AmChart
 Inherited Type: Number   CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls.
AmChart
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Height of the text, in pixels.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is italic font.
AmChart
 Inherited Type: Number   CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is boldface.
AmChart
 Inherited Type: Boolean   CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false).
AmChart
 Inherited Type: Number   CSS Inheritance: yes
The number of additional pixels to appear between each character.
AmChart
 Inherited Type: Number   CSS Inheritance: no
Number of pixels between the container's bottom border and plot area.
AmRectangularChart
 Inherited Type: Number   CSS Inheritance: no
Number of pixels between the container's left border and plot area.
AmRectangularChart
 Inherited Type: Number   CSS Inheritance: no
Number of pixels between the container's right border and plot area.
AmRectangularChart
 Inherited Type: Number   CSS Inheritance: no
Number of pixels between the container's top border and plot area.
AmRectangularChart
 Inherited Type: Number   CSS Inheritance: no
Maximum width of a column, in pixels.
AmSerialChart
 Inherited Type: Number   CSS Inheritance: no
The opacity of plot area's border.
AmCoordinateChart
 Inherited Type: uint   Format: Color   CSS Inheritance: no
The color of the plot area's border.
AmCoordinateChart
 Inherited Type: Array   CSS Inheritance: no
Specifies the alphas used to tint the background gradient fill of the plot area.
AmCoordinateChart
 Inherited Type: Array   Format: Color   CSS Inheritance: no
Specifies the colors used to tint the background gradient fill of the plot area.
AmCoordinateChart
 Inherited Type: Boolean   CSS Inheritance: no
Specifies whether the animation should be sequenced or all objects should appear at once.
AmCoordinateChart
 Inherited Type: Number   CSS Inheritance: no
The initial opacity of the column/line.
AmCoordinateChart
 Inherited Type: Number   CSS Inheritance: no
Duration of the animation, in seconds.
AmCoordinateChart
 Inherited Type: Function   CSS Inheritance: no
Animation effect.
AmCoordinateChart
 Inherited Type: String   CSS Inheritance: no
Direction from which line graphs should fly-in.
AmCoordinateChart
 Inherited Type: String   CSS Inheritance: yes
Alignment of text within a container.
AmChart
 Inherited Type: String   CSS Inheritance: yes
Determines whether the text is underlined.
AmChart
 Inherited Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels.
AmChart
Property detail
allowTurningOffproperty
allowTurningOff:Boolean  [read-write]

Specifies whether x button will be displayed near the panel. This button allows turning panel off.

The default value is false.

Implementation
    public function get allowTurningOff():Boolean
    public function set allowTurningOff(value:Boolean):void
chartCursorproperty 
chartCursor:ChartCursor  [write-only]

Chart cursor.

Implementation
    public function set chartCursor(value:ChartCursor):void
drawingEnabledproperty 
drawingEnabled:Boolean  [read-write]

If true, user can draw objects on a panel. drawingEnabled is set to true/false when user clicks on draw icon (if showDrawingIcons is set to true).

The default value is false.

Implementation
    public function get drawingEnabled():Boolean
    public function set drawingEnabled(value:Boolean):void
drawingIconsEnabledproperty 
drawingIconsEnabled:Boolean  [read-write]

If true, drawing icons will be displayed in top-right corner

The default value is false.

Implementation
    public function get drawingIconsEnabled():Boolean
    public function set drawingIconsEnabled(value:Boolean):void
drawOnAxisproperty 
drawOnAxis:ValueAxis  [write-only]

Specifies on which value axis user can draw trend lines. Set drawingIconsEnabled to true if you want drawing icons to be visible.

Implementation
    public function set drawOnAxis(value:ValueAxis):void
panelHeaderPaddingBottomproperty 
panelHeaderPaddingBottom:Number  [read-write]

Distance from bottom border to the panel header.

The default value is 0.

Implementation
    public function get panelHeaderPaddingBottom():Number
    public function set panelHeaderPaddingBottom(value:Number):void
panelHeaderPaddingLeftproperty 
panelHeaderPaddingLeft:Number  [read-write]

Distance from left border to the panel header.

The default value is 0.

Implementation
    public function get panelHeaderPaddingLeft():Number
    public function set panelHeaderPaddingLeft(value:Number):void
panelHeaderPaddingRightproperty 
panelHeaderPaddingRight:Number  [read-write]

Distance from right border to the panel header.

The default value is 0.

Implementation
    public function get panelHeaderPaddingRight():Number
    public function set panelHeaderPaddingRight(value:Number):void
panelHeaderPaddingTopproperty 
panelHeaderPaddingTop:Number  [read-write]

Distance from top border to the panel header.

The default value is 0.

Implementation
    public function get panelHeaderPaddingTop():Number
    public function set panelHeaderPaddingTop(value:Number):void
percentHeightproperty 
percentHeight:Number  [read-write]

Relative heigth of a panel.

Implementation
    public function get percentHeight():Number
    public function set percentHeight(value:Number):void
recalculateToPercentsproperty 
recalculateToPercents:String  [read-write]

Specifies when values should be recalculated to percents.

Implementation
    public function get recalculateToPercents():String
    public function set recalculateToPercents(value:String):void
showCategoryAxisproperty 
showCategoryAxis:Boolean  [read-write]

Specifies whether this panel will show category axis.

The default value is true.

Implementation
    public function get showCategoryAxis():Boolean
    public function set showCategoryAxis(value:Boolean):void
stockGraphsproperty 
stockGraphs:Array  [read-write]

The array of graphs belonging to this chart.

Implementation
    public function get stockGraphs():Array
    public function set stockGraphs(value:Array):void
stockLegendproperty 
stockLegend:StockLegend  [read-write]

Stock chart legend.

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

Panel title.

Implementation
    public function get title():String
    public function set title(value:String):void
trendLineAlphaproperty 
trendLineAlpha:Number  [read-write]

Trend line opacity.

The default value is 1.

Implementation
    public function get trendLineAlpha():Number
    public function set trendLineAlpha(value:Number):void
trendLineColorproperty 
trendLineColor:Number  [read-write]

Trend line color.

The default value is 0xCC0000.

Implementation
    public function get trendLineColor():Number
    public function set trendLineColor(value:Number):void
trendLineDashLengthproperty 
trendLineDashLength:Number  [read-write]

Trend line dash length.

The default value is 0.

Implementation
    public function get trendLineDashLength():Number
    public function set trendLineDashLength(value:Number):void
trendLineThicknessproperty 
trendLineThickness:Number  [read-write]

Trend line thickness.

The default value is 2.

Implementation
    public function get trendLineThickness():Number
    public function set trendLineThickness(value:Number):void
Method detail
addStockGraph()method
public function addStockGraph(value:StockGraph):StockGraph

Adds StockGraph to StockPanel.

Parameters
value:StockGraph

Returns
StockGraph
hideDrawingIcons()method 
public function hideDrawingIcons(value:Boolean):void

Hides drawing icons.

Parameters
value:Boolean
removeStockGraph()method 
public function removeStockGraph(graph:StockGraph):void

Removes StockGraph from StockPanel.

Parameters
graph:StockGraph