| Package | com.amcharts.stock |
| Class | public class StockPanel |
| Inheritance | StockPanel AmSerialChart AmRectangularChart AmCoordinateChart AmChart mx.core.UIComponent |
| Property | Defined by | ||
|---|---|---|---|
| allowTurningOff : Boolean
Specifies whether x button will be displayed near the panel.
| StockPanel | ||
![]() | autoMargins : Boolean
Specifies if margins of a chart where axes are will be calculated automatically by the maximum width of a axis label.
| AmRectangularChart | |
![]() | balloon : AmBalloon
An instance of com.amcharts.AmBalloon.
| AmChart | |
![]() | categoryAxis : CategoryAxis
Category Axis of the chart.
| AmSerialChart | |
![]() | categoryField : 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 | ||
![]() | chartScrollbar : ChartScrollbar
Chart scrollbar.
| AmRectangularChart | |
![]() | chartType : String
returns chart type (serial, xy, or radar).
| AmCoordinateChart | |
![]() | clipContent : Boolean
Specifies if the chart contents which goes outside the chart area should be clipped or not.
| AmChart | |
![]() | columnsAboveLines : Boolean
Specifies if columns should be drawn above lines or behind.
| AmSerialChart | |
![]() | dataProvider : 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 | ||
![]() | endDate : Date
Returns date (only if category axis parses dates) to which the chart is currently displayed.
| AmSerialChart | |
![]() | endIndex : Number
Returns category index to which the chart is currently displayed.
| AmSerialChart | |
![]() | graphs : Array
The array of graphs belonging to this chart.
| AmCoordinateChart | |
![]() | legend : AmLegend
Chart legend.
| AmChart | |
![]() | maxSelectedSeries : Number
Maximum number of series allowed to select.
| AmSerialChart | |
![]() | maxSelectedTime : Number
The longest time span allowed to select (in milliseconds).
| AmSerialChart | |
![]() | mouseWheelEnabled : Boolean
Specifies if zooming/scrolling with mouse wheel is enabled.
| AmRectangularChart | |
![]() | numberFormatter : 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 | ||
![]() | percentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
| AmChart | |
| percentHeight : Number
Relative heigth of a panel.
| StockPanel | ||
![]() | prefixesOfBigNumbers : Array
Array of objects with prefixes for big numbers.
| AmChart | |
![]() | prefixesOfSmallNumbers : Array
Array of objects with prefixes for small numbers.
| AmChart | |
| recalculateToPercents : String
Specifies when values should be recalculated to percents.
| StockPanel | ||
![]() | rotate : Boolean
If you set this to true, the chart will be rotated by 90 degrees (the columns will become bars).
| AmSerialChart | |
![]() | scrollbarOnly : Boolean
Sometimes there is no need to generate chart, but only a scrollbar.
| AmSerialChart | |
![]() | seriesIdField : 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 | ||
![]() | startDate : Date
Returns date (only if category axis parses dates) from which the chart is currently displayed.
| AmSerialChart | |
![]() | startIndex : 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 | ||
![]() | trendLines : Array
Array of trend lines.
| AmRectangularChart | |
| trendLineThickness : Number
Trend line thickness.
| StockPanel | ||
![]() | urlTarget : String
The target of the url.
| AmCoordinateChart | |
![]() | usePrefixes : Boolean
If true, prefixes will be used for big and small numbers.
| AmChart | |
![]() | valueAxes : Array
The array of value axes.
| AmCoordinateChart | |
![]() | zoomOutButton : Object
Zoom-out button, visible when chart is zoomed-in.
| AmRectangularChart | |
![]() | zoomOutOnDataUpdate : Boolean
Specifies if the chart should zoom out when data is updated.
| AmSerialChart | |
![]() | zoomOutText : String
Text in the zoom-out button.
| AmRectangularChart | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
Adds a graph (series) to the chart.
| AmCoordinateChart | |
|
Adds StockGraph to StockPanel.
| StockPanel | ||
![]() |
Adds a trend line to the chart.
| AmRectangularChart | |
![]() |
Adds value axis to the chart.
| AmCoordinateChart | |
![]() |
animateAgain():void
The animation is played only once or if you change the animation styles.
| AmCoordinateChart | |
![]() |
destroyAllListeners():void
Destorys all listeners.
| AmRectangularChart | |
![]() |
getCategoryIndexByValue(value:String):Number
Returns index of the specified category value.
| AmSerialChart | |
![]() |
getGraphById(id:String):AmGraph
Returns graph by id.
| AmCoordinateChart | |
![]() |
getValueAxisById(id:String):ValueAxis
Returns value Axis by id.
| AmCoordinateChart | |
|
hideDrawingIcons(value:Boolean):void
Hides drawing icons.
| StockPanel | ||
![]() |
Hide the graph (if it is visible).
| AmCoordinateChart | |
![]() |
hideGraphsBalloon(graph:AmGraph):void
Hide value balloon of a graph.
| AmCoordinateChart | |
![]() |
highlightGraph(graph:AmGraph):void
HighlightGraph the graph.
| AmSerialChart | |
![]() |
invalidateData():void
In case data inside your dataProvider was changed, you can call this
method to rebuild the chart.
| AmChart | |
![]() |
invalidateMargins():void
Makes the chart to recalculate margin width and redraw.
| AmRectangularChart | |
![]() |
removeChartCursor():void
Removes cursor from the chart.
| AmRectangularChart | |
![]() |
removeChartScrollbar():void
Removes scrollbar from the chart.
| AmRectangularChart | |
![]() |
removeGraph(graph:AmGraph):void
Removes graph from the chart.
| AmSerialChart | |
|
removeStockGraph(graph:StockGraph):void
Removes StockGraph from StockPanel.
| StockPanel | ||
![]() |
removeTrendLine(trendLine:TrendLine):void
Removes trend line from the chart.
| AmRectangularChart | |
![]() |
removeValueAxis(valueAxis:ValueAxis):void
Removes value axis from the chart.
| AmCoordinateChart | |
![]() |
Show the graph (if it is hidden).
| AmCoordinateChart | |
![]() |
showGraphsBalloon(graph:AmGraph):void
Show value balloon of a graph.
| AmCoordinateChart | |
![]() |
unhighlightGraph():void
UnhighlightGraph the graph.
| AmSerialChart | |
![]() |
zoomOut():void
Zooms out.
| AmSerialChart | |
![]() |
zoomToCategoryValues(start:String, end:String):void
Zooms the chart by the value of the category axis.
| AmSerialChart | |
![]() |
zoomToDates(start:Date, end:Date):void
Zooms the chart from one date to another.
| AmSerialChart | |
![]() |
zoomToIndexes(start:Number, end:Number):void
Zooms the chart by the index of the category.
| AmSerialChart | |
| allowTurningOff | property |
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.
public function get allowTurningOff():Boolean
public function set allowTurningOff(value:Boolean):void
| chartCursor | property |
chartCursor:ChartCursor [write-only]Chart cursor.
Implementation public function set chartCursor(value:ChartCursor):void
| drawingEnabled | property |
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.
public function get drawingEnabled():Boolean
public function set drawingEnabled(value:Boolean):void
| drawingIconsEnabled | property |
drawingIconsEnabled:Boolean [read-write]If true, drawing icons will be displayed in top-right corner
The default value is false.
public function get drawingIconsEnabled():Boolean
public function set drawingIconsEnabled(value:Boolean):void
| drawOnAxis | property |
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
| panelHeaderPaddingBottom | property |
panelHeaderPaddingBottom:Number [read-write]Distance from bottom border to the panel header.
The default value is 0.
public function get panelHeaderPaddingBottom():Number
public function set panelHeaderPaddingBottom(value:Number):void
| panelHeaderPaddingLeft | property |
panelHeaderPaddingLeft:Number [read-write]Distance from left border to the panel header.
The default value is 0.
public function get panelHeaderPaddingLeft():Number
public function set panelHeaderPaddingLeft(value:Number):void
| panelHeaderPaddingRight | property |
panelHeaderPaddingRight:Number [read-write]Distance from right border to the panel header.
The default value is 0.
public function get panelHeaderPaddingRight():Number
public function set panelHeaderPaddingRight(value:Number):void
| panelHeaderPaddingTop | property |
panelHeaderPaddingTop:Number [read-write]Distance from top border to the panel header.
The default value is 0.
public function get panelHeaderPaddingTop():Number
public function set panelHeaderPaddingTop(value:Number):void
| percentHeight | property |
percentHeight:Number [read-write]Relative heigth of a panel.
Implementation public function get percentHeight():Number
public function set percentHeight(value:Number):void
| recalculateToPercents | property |
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
| showCategoryAxis | property |
showCategoryAxis:Boolean [read-write]Specifies whether this panel will show category axis.
The default value is true.
public function get showCategoryAxis():Boolean
public function set showCategoryAxis(value:Boolean):void
| stockGraphs | property |
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
| stockLegend | property |
stockLegend:StockLegend [read-write]Stock chart legend.
Implementation public function get stockLegend():StockLegend
public function set stockLegend(value:StockLegend):void
| title | property |
title:String [read-write]Panel title.
Implementation public function get title():String
public function set title(value:String):void
| trendLineAlpha | property |
trendLineAlpha:Number [read-write]Trend line opacity.
The default value is 1.
public function get trendLineAlpha():Number
public function set trendLineAlpha(value:Number):void
| trendLineColor | property |
trendLineColor:Number [read-write]Trend line color.
The default value is 0xCC0000.
public function get trendLineColor():Number
public function set trendLineColor(value:Number):void
| trendLineDashLength | property |
trendLineDashLength:Number [read-write]Trend line dash length.
The default value is 0.
public function get trendLineDashLength():Number
public function set trendLineDashLength(value:Number):void
| trendLineThickness | property |
trendLineThickness:Number [read-write]Trend line thickness.
The default value is 2.
public function get trendLineThickness():Number
public function set trendLineThickness(value:Number):void
| addStockGraph | () | method |
public function addStockGraph(value:StockGraph):StockGraphAdds StockGraph to StockPanel.
Parametersvalue:StockGraph |
StockGraph |
| hideDrawingIcons | () | method |
public function hideDrawingIcons(value:Boolean):voidHides drawing icons.
Parametersvalue:Boolean |
| removeStockGraph | () | method |
public function removeStockGraph(graph:StockGraph):voidRemoves StockGraph from StockPanel.
Parametersgraph:StockGraph |