Package | com.anychartstock |
Class | public class AnyChartStock |
Inheritance | AnyChartStock mx.core.UIComponent |
The <anychartstock:AnyChartStock>
tag inherits all of the tag
attributes of its superclass UIComponent
and adds the following tag attributes:
<anychartstock:AnyChartStock Properties config="null" xmlFile="null" Events chartMouseDown="No default" chartMouseMove="No default" chartMouseOut="No default" chartMouseOver="No default" chartMouseUp="No default" eventMarkerClick="No default" eventMarkerDeselect="No default" eventMarkerDoubleClick="No default" eventMarkerMouseOut="No default" eventMarkerMouseOver="No default" eventMarkerSelect="No default" mergedEventMarkerClick="No default" mergedEventMarkerDeselect="No default" mergedEventMarkerDoubleClick="No default" mergedEventMarkerMouseOut="No default" mergedEventMarkerMouseOver="No default" mergedEventMarkerSelect="No default" selectedRangeChange="No default" stockDataLoad="No default" stockDraw="No default" annotationDrawingStart="No default" annotationDrawingFinish="No default" annotationEditingStart="No default" annotationEditingFinish="No default" annotationSelect="No default" annotationDeselect="No default" annotationRemove="No default" >MXML Syntax Hide MXML Syntax
Property | Defined by | ||
---|---|---|---|
config : XML
Gets passed inline XML configuration.
| AnyChartStock | ||
xmlFile : String
Gets/sets XML configuration file location.
| AnyChartStock |
Method | Defined by | ||
---|---|---|---|
Creates an instance of AnyChartStock class.
| AnyChartStock | ||
addAnnotation(settings:XML = null):void
Adds an annotation with specified settings.
| AnyChartStock | ||
addEventMarker(groupId:String, eventMarker:XML):void
Adds new event marker to the specified group.
| AnyChartStock | ||
addEventMarkerGroup(chartId:String, seriesId:String, group:XML):void
Adds new event marker group to the specified series.
| AnyChartStock | ||
appendData(dataSetId:String, csvData:String, removeCount:uint = 0):void
Appends CSV data to the chart.
| AnyChartStock | ||
commitDataChanges():void
Commits data appends and data points removal made by appendData(), removeDataRow() and removeDataRange() method calls.
| AnyChartStock | ||
commitEventMarkersChanges():void
Commits all changes made to event markers by addEventMarker(), removeEventMarker(), addEventMarkerGroup(), removeEventMarkerGroup() method calls.
| AnyChartStock | ||
deselectAnnotaion():void
Deselects annotation.
| AnyChartStock | ||
deselectAnnotation():void
Deselects annotation.
| AnyChartStock | ||
exportAsJPG(settings:XML = null):void
Exports a chart screenshot as a JPG image.
| AnyChartStock | ||
exportAsPDF(settings:XML = null):void
Exports a chart screenshot as a PDF document.
| AnyChartStock | ||
exportAsPNG(settings:XML = null):void
Exports a chart screenshot as a PNG image.
| AnyChartStock | ||
getAnnotationAsXML(id:String):XML
Gets specified annotation settings as an XML.
| AnyChartStock | ||
getAnnotationListAsXML():XML
Returns all annotation configurations as an XML.
| AnyChartStock | ||
Gets current data grouping information.
| AnyChartStock | ||
getCurrentYAxisInfo(chartId:String, axisId:String):YAxisInfo
Gets current Y axis scale information.
| AnyChartStock | ||
getDataSetCSV(dataSetID:String, columnsOrder:Array, timeStampFormat:String = "%yyyy-%MM-%dd %HH:%mm:%ss.%fff", colsSep:String = ",", rowsSep:String = "
"):String
Gets data from a data as a CSV string.
| AnyChartStock | ||
getFirstDate():Date
Gets the first date of all used by visible series data sources.
| AnyChartStock | ||
getFirstVisibleDate():Date
Gets the first visible date.
| AnyChartStock | ||
getJPGImageBase64Encoded(settings:XML = null):String
Gets a chart screenshot as a base64 encoded JPG image.
| AnyChartStock | ||
getLastDate():Date
Gets the last date from all mapped and used by visible series data sources.
| AnyChartStock | ||
getLastVisibleDate():Date
Gets the last visible date.
| AnyChartStock | ||
getPDFBase64Encoded(settings:XML = null):String
Gets a chart screenshot as a base64 encoded PDF document.
| AnyChartStock | ||
getPNGImageBase64Encoded(settings:XML = null):String
Gets a chart screenshot as a base64 encoded PNG image.
| AnyChartStock | ||
getSelectedAnnotationId():String
Returns selected annotation identifier.
| AnyChartStock | ||
getSeriesCloseValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "close" field of the series.
| AnyChartStock | ||
getSeriesCustomValue(chartId:String, seriesId:String, field:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets information about custom field of the series.
| AnyChartStock | ||
getSeriesHighValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "high" field of the series.
| AnyChartStock | ||
getSeriesLowValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "low" field of the series.
| AnyChartStock | ||
getSeriesOpenValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "open" field of the series.
| AnyChartStock | ||
getSeriesPercentValueChange(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about a percent change of "value" (or "close" field, if "value" field is not specified) series field values.
| AnyChartStock | ||
getSeriesValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "value" (or "close" field, if "value" field is not specified) series field.
| AnyChartStock | ||
getSeriesValueChange(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about a change of "value" (or "close" field, if "value" field is not specified) series field values.
| AnyChartStock | ||
getTechnicalIndicatorValue(chartId:String, technicalIndicatorId:String, searchForNotNaN:Boolean):ITechIndicatorInfo
Gets info about technical indicator value.
| AnyChartStock | ||
hideEventMarker(eventMarkerGroupId:String, eventMarkerId:String):void
Hides specified event marker.
| AnyChartStock | ||
hideEventMarkerGroup(eventMarkerGroupId:String):void
Hides specified event marker group.
| AnyChartStock | ||
printChart(settings:XML = null):void
Prints the chart
| AnyChartStock | ||
removeAllAnnotations():void
Removes all annotations including predefined in chart XML configuration.
| AnyChartStock | ||
removeAnnotation(id:String):void
Removes an annotation by its identifier.
| AnyChartStock | ||
removeDataRange(dataSetId:String, startDate:Date, endDate:Date):void
Removes data range from a data set by the range of dates.
| AnyChartStock | ||
removeDataRow(dataSetId:String, date:Date):void
Removes data row from a data set by its date.
| AnyChartStock | ||
removeEventMarker(groupId:String, eventMarkerId:String):void
Remove event marker from the specified group.
| AnyChartStock | ||
removeEventMarkerGroup(groupId:String):void
Remove event marker group by group id.
| AnyChartStock | ||
resetEventMarkerSelection(chartId:String):void
Resets event marker selection on the chart.
| AnyChartStock | ||
scrollTo(date:Date):void
Scrolls a chart to the given date.
| AnyChartStock | ||
selectAnnotation(id:String):void
Selects annotation by its identifier.
| AnyChartStock | ||
selectEventMarker(eventMarkerGroupId:String, eventMarkerId:String):void
Selects specified event marker.
| AnyChartStock | ||
selectRange(type:String, unit:String = null, count:Number = 1, anchor:String = "LastDate"):void
Selects the specified range of dates.
| AnyChartStock | ||
setAnnotationList(settings:XML = null):void
Replaces all present annotations with the given list.
| AnyChartStock | ||
setConfig(config:XML):void
Replace chart configuration with a new one.
| AnyChartStock | ||
setEventMarkers(eventMarkers:XML):void
Replaces current event markers settings with new ones.
| AnyChartStock | ||
setSettings(value:XML, preserveSelectedRange:Boolean = true):void
Replaces current chart visual settings with new ones.
| AnyChartStock | ||
showEventMarker(eventMarkerGroupId:String, eventMarkerId:String):void
Shows specified hidden event marker.
| AnyChartStock | ||
showEventMarkerGroup(eventMarkerGroupId:String):void
Shows specified hidden event marker group.
| AnyChartStock | ||
startDrawingAnnotation(type:String, settings:XML = null):void
Starts annotation drawing.
| AnyChartStock | ||
stopDrawingAnnotation():void
Stops annotation drawing.
| AnyChartStock | ||
updateAnnotation(id:String, settings:XML = null):void
Updates an annotation by the identifier with new settings.
| AnyChartStock | ||
updateEventMarker(groupId:String, eventMarkerId:String, newSettings:XML):void
Updates an event marker with new settings.
| AnyChartStock | ||
zoomTo(startDate:Date, endDate:Date):void
Zooms a chart to the custom range.
| AnyChartStock |
Event | Summary | Defined by | ||
---|---|---|---|---|
Dispatched when an annotation is deselected. | AnyChartStock | |||
Dispatched when user finishes drawing an annotation. | AnyChartStock | |||
Dispatched repeatedly when an annotation drawing started by calling the startDrawingAnnotation() method progresses. | AnyChartStock | |||
Dispatched when an annotation drawing is started by calling the startDrawingAnnotation() method. | AnyChartStock | |||
Dispatched when user finishes editing an annotation. | AnyChartStock | |||
Dispatched when an annotation editing progresses. | AnyChartStock | |||
Dispatched when an annotation editing is started. | AnyChartStock | |||
Dispatched when user removes an annotation using DELETE key. | AnyChartStock | |||
Dispatched when an annotation is selected. | AnyChartStock | |||
Dispatched when mouse button is pressed on chart plotting area. | AnyChartStock | |||
Dispatched when mouse moves over chart plotting area. | AnyChartStock | |||
Dispatched when mouse leaves chart plotting area. | AnyChartStock | |||
Dispatched when chart plotting area is hovered by mouse. | AnyChartStock | |||
Dispatched when mouse button is released. | AnyChartStock | |||
Dispatched when user clicks an event marker. | AnyChartStock | |||
Dispatched when an event marker is deselected. | AnyChartStock | |||
Dispatched when user double clicks an event marker. | AnyChartStock | |||
Dispatched when mouse leaves an event marker. | AnyChartStock | |||
Dispatched when an event marker is hovered by mouse. | AnyChartStock | |||
Dispatched when an event marker is selected. | AnyChartStock | |||
Dispatched when user clicks an event marker group. | AnyChartStock | |||
Dispatched when a merged event marker group is deselected. | AnyChartStock | |||
Dispatched when user double clicks a merged event marker group. | AnyChartStock | |||
Dispatched when mouse leaves a merged event marker group. | AnyChartStock | |||
Dispatched when user hovers a merged event marker group. | AnyChartStock | |||
Dispatched when a merged event marker group is selected. | AnyChartStock | |||
Dispatched when the selected range of a chart is changed. | AnyChartStock | |||
Dispatched when CSV data is loaded. | AnyChartStock | |||
Dispatched when a chart is drawn. | AnyChartStock |
Constant | Defined by | ||
---|---|---|---|
VERSION : String = "1.7.0 Revision #${dist.revision}" [static]
Component version
| AnyChartStock |
config | property |
config:XML
[read-write]Gets passed inline XML configuration.
Chart configuration can be passed to a chart in two ways:
public function get config():XML
public function set config(value:XML):void
See also
xmlFile | property |
xmlFile:String
[read-write]Gets/sets XML configuration file location.
Chart configuration can be set to a chart in two ways:
public function get xmlFile():String
public function set xmlFile(value:String):void
See also
AnyChartStock | () | constructor |
public function AnyChartStock()
Creates an instance of AnyChartStock class.
addAnnotation | () | method |
public function addAnnotation(settings:XML = null):void
Adds an annotation with specified settings.
Parameterssettings:XML (default = null ) — XML object with settings. Must correspond to <annotation> configuration.
|
addEventMarker | () | method |
public function addEventMarker(groupId:String, eventMarker:XML):void
Adds new event marker to the specified group.
Note: Changes are applied only on #commitEventMarkersChanges() call.
ParametersgroupId:String — Group id. See <group> node reference.
|
|
eventMarker:XML — Event marker configuration. See <event> node reference.
|
See also
addEventMarkerGroup | () | method |
public function addEventMarkerGroup(chartId:String, seriesId:String, group:XML):void
Adds new event marker group to the specified series.
Note: Changes are applied only on #commitEventMarkersChanges() call.
ParameterschartId:String — Sets what chart this event marker group should be added to. See <chart> node reference.
|
|
seriesId:String — Sets what series on the chartId chart this event marker group should be added to. See <series> node reference.
|
|
group:XML — Event marker group configuration. See <group> node reference.
|
See also
appendData | () | method |
public function appendData(dataSetId:String, csvData:String, removeCount:uint = 0):void
Appends CSV data to the chart.
Note: First line in appended CSV data is never ignored.
Note: Changes are applied only on #commitDataChanges() method call.
ParametersdataSetId:String — Data set id. See <data set> node reference.
|
|
csvData:String — String with CSV data. CSV structure and locale should correspond to a data set structure and locale it is appended to. See <CSV table within.>.
|
|
removeCount:uint (default = 0 ) — Sets the number of rows to be deleted from the start of the dataSet.
|
See also
commitDataChanges | () | method |
public function commitDataChanges():void
Commits data appends and data points removal made by appendData(), removeDataRow() and removeDataRange() method calls.
Note: You can make data changes in different data sets and commit all these changes simultaneously.
See also
commitEventMarkersChanges | () | method |
public function commitEventMarkersChanges():void
Commits all changes made to event markers by addEventMarker(), removeEventMarker(), addEventMarkerGroup(), removeEventMarkerGroup() method calls.
You can do multiple calls to these methods and apply all changes simultaneously.
See also
deselectAnnotaion | () | method |
public function deselectAnnotaion():void
Deselects annotation.
See also
deselectAnnotation | () | method |
public function deselectAnnotation():void
Deselects annotation.
exportAsJPG | () | method |
public function exportAsJPG(settings:XML = null):void
Exports a chart screenshot as a JPG image.
Note: Exporting mechanism sends a screenshot to the server and then gets it back due to Flash Security, so you have to set valid export script url. See Chart Exporting article for more info.
Parameterssettings:XML (default = null ) — Custom JPG export settings. See <jpg_image> node reference.
|
See also
exportAsPDF | () | method |
public function exportAsPDF(settings:XML = null):void
Exports a chart screenshot as a PDF document.
Note: Exporting mechanism sends a screenshot to the server and then gets it back due to Flash Security, so you have to set valid export script url. See Chart Exporting article for more info.
Parameterssettings:XML (default = null ) — Custom PDF export settings. See <pdf> node reference.
|
See also
exportAsPNG | () | method |
public function exportAsPNG(settings:XML = null):void
Exports a chart screenshot as a PNG image.
Note: Exporting mechanism sends a screenshot to the server and then gets it back due to Flash Security, so you have to set valid export script url. See Chart Exporting article for more info.
Parameterssettings:XML (default = null ) — Custom PNG export settings. See <png_image> node reference.
|
See also
getAnnotationAsXML | () | method |
public function getAnnotationAsXML(id:String):XML
Gets specified annotation settings as an XML.
Parametersid:String — String annotation identifier.
|
XML — XML object with annotation settings. Corresponds to <annotation> node.
|
getAnnotationListAsXML | () | method |
public function getAnnotationListAsXML():XML
Returns all annotation configurations as an XML.
ReturnsXML — XML object with <annotation_list> structure.
|
getCurrentDataGroupingInterval | () | method |
public function getCurrentDataGroupingInterval():DataGroupingIntervalInfo
Gets current data grouping information.
Note: The return value may be null if the method is called while the component is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ReturnsDataGroupingIntervalInfo —
DataGroupingIntervalInfo DataGroupingIntervalInfo object, which contains information about current grouping interval.
|
See also
getCurrentYAxisInfo | () | method |
public function getCurrentYAxisInfo(chartId:String, axisId:String):YAxisInfo
Gets current Y axis scale information.
Note: The return value may be empty if the method is called while the component is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String |
|
axisId:String |
YAxisInfo —
YAxisInfo YAxisInfo object, which contains information about current axis scale values.
|
See also
getDataSetCSV | () | method |
public function getDataSetCSV(dataSetID:String, columnsOrder:Array, timeStampFormat:String = "%yyyy-%MM-%dd %HH:%mm:%ss.%fff", colsSep:String = ",", rowsSep:String = "
"):String
Gets data from a data as a CSV string.
Note: to get a column from a dataset, this column should be referenced in any data provider in configuration file.
ParametersdataSetID:String — - A string data set identifier.
|
|
columnsOrder:Array — - An array of column indexes to serialize. Data column should also be mentioned (usualy a 0 column).
|
|
timeStampFormat:String (default = "%yyyy-%MM-%dd %HH:%mm:%ss.%fff ") — - A string of timestamps to serialize.
|
|
colsSep:String (default = ", ") — - A columns separator.
|
|
rowsSep:String (default = "
") — - A rows separator.
|
String — String CSV data.
|
getFirstDate | () | method |
public function getFirstDate():Date
Gets the first date of all used by visible series data sources.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ReturnsDate — Data Object Date, which contains the specified date and time.
|
See also
getFirstVisibleDate | () | method |
public function getFirstVisibleDate():Date
Gets the first visible date.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ReturnsDate — Data Object Date, which contains the specified date and time.
|
See also
getJPGImageBase64Encoded | () | method |
public function getJPGImageBase64Encoded(settings:XML = null):String
Gets a chart screenshot as a base64 encoded JPG image.
Parameterssettings:XML (default = null ) — Screenshot settings. See <jpg_image> node for export settings details.
|
String — String Base64 encoded JPG image
|
getLastDate | () | method |
public function getLastDate():Date
Gets the last date from all mapped and used by visible series data sources.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ReturnsDate — Data Object Date, which contains the specified date and time.
|
See also
getLastVisibleDate | () | method |
public function getLastVisibleDate():Date
Gets the last visible date.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ReturnsDate — Data Object Date, which contains the specified date and time.
|
See also
getPDFBase64Encoded | () | method |
public function getPDFBase64Encoded(settings:XML = null):String
Gets a chart screenshot as a base64 encoded PDF document.
Parameterssettings:XML (default = null ) — Screenshot settings. See <pdf> node for export settings details.
|
String — String Base64 encoded PDF document
|
getPNGImageBase64Encoded | () | method |
public function getPNGImageBase64Encoded(settings:XML = null):String
Gets a chart screenshot as a base64 encoded PNG image.
Parameterssettings:XML (default = null ) — Screenshot settings. See <png_image> node for export settings details.
|
String — String Base64 encoded PNG image
|
getSelectedAnnotationId | () | method |
public function getSelectedAnnotationId():String
Returns selected annotation identifier. If there is no annotation selected, returns null.
ReturnsString — String annotation identifier.
|
getSeriesCloseValue | () | method |
public function getSeriesCloseValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "close" field of the series.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo Object SeriesValueInfo, which contains information about "value" series field.
|
See also
getSeriesCustomValue | () | method |
public function getSeriesCustomValue(chartId:String, seriesId:String, field:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets information about custom field of the series.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
field:String — Custom field name.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo - object SeriesValueInfo, which contains information about "value" series field.
|
See also
getSeriesHighValue | () | method |
public function getSeriesHighValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "high" field of the series.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo Object SeriesValueInfo, which contains information about "value" series field.
|
See also
getSeriesLowValue | () | method |
public function getSeriesLowValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "low" field of the series.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo Object SeriesValueInfo, which contains information about "value" series field.
|
See also
getSeriesOpenValue | () | method |
public function getSeriesOpenValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "open" field of the series.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo Object SeriesValueInfo, which contains information about "value" series field.
|
See also
getSeriesPercentValueChange | () | method |
public function getSeriesPercentValueChange(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about a percent change of "value" (or "close" field, if "value" field is not specified) series field values.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo Object SeriesValueInfo, which contains information about "value" series field.
|
See also
getSeriesValue | () | method |
public function getSeriesValue(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about "value" (or "close" field, if "value" field is not specified) series field.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo Object SeriesValueInfo, which contains information about "value" series field.
|
See also
getSeriesValueChange | () | method |
public function getSeriesValueChange(chartId:String, seriesId:String, searchForNotNaN:Boolean):SeriesValueInfo
Gets info about a change of "value" (or "close" field, if "value" field is not specified) series field values.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
seriesId:String — Series id. See <series> node reference.
|
|
searchForNotNaN:Boolean |
SeriesValueInfo —
SeriesValueInfo Object SeriesValueInfo, which contains information about "value" series field.
|
See also
getTechnicalIndicatorValue | () | method |
public function getTechnicalIndicatorValue(chartId:String, technicalIndicatorId:String, searchForNotNaN:Boolean):ITechIndicatorInfo
Gets info about technical indicator value.
Note: "current" property of an output object is not NaN only if any point of the series is hovered.
Note: The return value may be null if the method is called while a chart is not drawn yet. To avoid this case you should call this method only after #onChartDraw event is raised.
ParameterschartId:String — Chart id. See <chart> node reference.
|
|
technicalIndicatorId:String — Technical indicator id. See <technical_indicator> node reference.
|
|
searchForNotNaN:Boolean |
ITechIndicatorInfo —
ITechIndicatorInfo Object ITechIndicatorInfo, which contains information about technical indicator value.
|
See also
hideEventMarker | () | method |
public function hideEventMarker(eventMarkerGroupId:String, eventMarkerId:String):void
Hides specified event marker.
A marker is referenced by its id and by the id of the group that contains the marker.
ParameterseventMarkerGroupId:String — Event marker group identificator. See <group> node reference.
|
|
eventMarkerId:String — Event marker identificator. See <event> node reference.
|
See also
hideEventMarkerGroup | () | method |
public function hideEventMarkerGroup(eventMarkerGroupId:String):void
Hides specified event marker group.
A marker group is referenced by it's id
ParameterseventMarkerGroupId:String — Event marker group identificator. See <group> node reference.
|
See also
printChart | () | method |
public function printChart(settings:XML = null):void
Prints the chart
Parameterssettings:XML (default = null ) — Chart printing settings. See <printing> node description for available settings.
|
removeAllAnnotations | () | method |
public function removeAllAnnotations():void
Removes all annotations including predefined in chart XML configuration.
removeAnnotation | () | method |
public function removeAnnotation(id:String):void
Removes an annotation by its identifier.
Parametersid:String — String annotation identifier.
|
removeDataRange | () | method |
public function removeDataRange(dataSetId:String, startDate:Date, endDate:Date):void
Removes data range from a data set by the range of dates.
Note: Changes are applied only on #commitDataChanges() method call.
Note: Consider to use UTC timestamps, because chart data parser interprets dates in CSV to be UTC by default.
ParametersdataSetId:String — Data set id. See <data set> node reference.
|
|
startDate:Date — Sets the start of the range to be removed.
|
|
endDate:Date — Sets the end of the range to be removed.
|
See also
removeDataRow | () | method |
public function removeDataRow(dataSetId:String, date:Date):void
Removes data row from a data set by its date.
Note: Changes are applied only on #commitDataChanges() method call.
Note: Consider to use UTC timestamps, because chart data parser interprets dates in CSV to be UTC by default.
ParametersdataSetId:String — Data set id. See <data set> node reference.
|
|
date:Date — The date to be removed from the data set.
|
See also
removeEventMarker | () | method |
public function removeEventMarker(groupId:String, eventMarkerId:String):void
Remove event marker from the specified group.
Changes are applied only on #commitEventMarkersChanges() method call.
ParametersgroupId:String — Group id. See <group> node reference.
|
|
eventMarkerId:String — Event marker id. See <event> node reference.
|
See also
removeEventMarkerGroup | () | method |
public function removeEventMarkerGroup(groupId:String):void
Remove event marker group by group id.
Note: Changes are applied only on #commitEventMarkersChanges() call.
ParametersgroupId:String — Group id. See <group> node reference.
|
See also
resetEventMarkerSelection | () | method |
public function resetEventMarkerSelection(chartId:String):void
Resets event marker selection on the chart.
ParameterschartId:String — Chart identificator. See <chart> node reference.
|
See also
scrollTo | () | method |
public function scrollTo(date:Date):void
Scrolls a chart to the given date.
Parametersdate:Date — Start date
|
See also
selectAnnotation | () | method |
public function selectAnnotation(id:String):void
Selects annotation by its identifier.
Parametersid:String — String annotation identifier.
|
selectEventMarker | () | method |
public function selectEventMarker(eventMarkerGroupId:String, eventMarkerId:String):void
Selects specified event marker.
A marker is referenced by it's id and by an id of the group that contains the marker.
ParameterseventMarkerGroupId:String — Event marker group identificator. See <group> node reference.
|
|
eventMarkerId:String — Event marker identificator. See <event> node reference.
|
See also
selectRange | () | method |
public function selectRange(type:String, unit:String = null, count:Number = 1, anchor:String = "LastDate"):void
Selects the specified range of dates.
Parameterstype:String — Unit type. Possible values: "YTD", "Max" or "Unit"
|
|
unit:String (default = null ) — Unit type if type parameter is set to "Unit". Can be "Year", "Month", "Day", "Hour", "Minute", "Second", "Millisecond".
|
|
count:Number (default = 1 ) — Sets units count if type parameter is "Unit"
|
|
anchor:String (default = "LastDate ") — Sets the date which the range is calculated from (only for "Unit" type). Available values: "LastDate", "FirstDate", "FirstVisibleDate", "LastVisibleDate", "Center".
|
See also
setAnnotationList | () | method |
public function setAnnotationList(settings:XML = null):void
Replaces all present annotations with the given list.
Parameterssettings:XML (default = null ) — XML node with <annotation_list> structure.
|
setConfig | () | method |
public function setConfig(config:XML):void
Replace chart configuration with a new one.
Parametersconfig:XML — Config. See <stock> node reference.
|
See also
setEventMarkers | () | method |
public function setEventMarkers(eventMarkers:XML):void
Replaces current event markers settings with new ones.
ParameterseventMarkers:XML — New event markers settings. See <event_markers> node description in XML Reference for more information.
|
See also
setSettings | () | method |
public function setSettings(value:XML, preserveSelectedRange:Boolean = true):void
Replaces current chart visual settings with new ones.
Parametersvalue:XML — New settings XML. See <settings> node description in XML Reference for more information.
|
|
preserveSelectedRange:Boolean (default = true ) — Sets whether to preserve the selected range or not.
|
See also
showEventMarker | () | method |
public function showEventMarker(eventMarkerGroupId:String, eventMarkerId:String):void
Shows specified hidden event marker.
A marker is referenced by its id and by the id of the group that contains the marker.
ParameterseventMarkerGroupId:String — Event marker group identificator. See <group> node reference.
|
|
eventMarkerId:String — Event marker identificator. See <event> node reference.
|
See also
showEventMarkerGroup | () | method |
public function showEventMarkerGroup(eventMarkerGroupId:String):void
Shows specified hidden event marker group.
A marker group is referenced by it's id
ParameterseventMarkerGroupId:String — Event marker group identificator. See <group> node reference.
|
See also
startDrawingAnnotation | () | method |
public function startDrawingAnnotation(type:String, settings:XML = null):void
Starts annotation drawing.
Parameterstype:String — String annotation type. Can be "Ray", "Line", "InfiniteLine", "VerticalLine", "HorizontalLine", "Rectangle", "Ellipse", "Triangle", "TrendChannel", "AndrewsPitchfork", "FibonacciFan", "FibonacciArc", "FibonacciRetracement", "FibonacciTimezones", "Arrow" or "Label".
|
|
settings:XML (default = null ) — XML object with settings. Must correspond to <annotation> configuration.
|
stopDrawingAnnotation | () | method |
public function stopDrawingAnnotation():void
Stops annotation drawing.
updateAnnotation | () | method |
public function updateAnnotation(id:String, settings:XML = null):void
Updates an annotation by the identifier with new settings. It merges existing annotation settings with newly passed. It is recommended to specify only settings you want to change.
Parametersid:String — String annotation identifier.
|
|
settings:XML (default = null ) — XML object with settings. Must correspond to <annotation> configuration.
|
updateEventMarker | () | method |
public function updateEventMarker(groupId:String, eventMarkerId:String, newSettings:XML):void
Updates an event marker with new settings.
Note: changes are applied immediately, calling #commitEventMarkersChanges() is not necessary
ParametersgroupId:String — Group id. See <group> node reference.
|
|
eventMarkerId:String — Event marker id. See <event> node reference.
|
|
newSettings:XML — New settings XML. See <event> node reference.
|
zoomTo | () | method |
public function zoomTo(startDate:Date, endDate:Date):void
Zooms a chart to the custom range.
ParametersstartDate:Date — Start date
|
|
endDate:Date — End date
|
See also
annotationDeselect | event |
com.anychartstock.events.AnnotationEvent
Dispatched when an annotation is deselected.
annotationDrawingFinish | event |
com.anychartstock.events.AnnotationEvent
Dispatched when user finishes drawing an annotation.
annotationDrawingProgress | event |
com.anychartstock.events.AnnotationDrawingProgressEvent
Dispatched repeatedly when an annotation drawing started by calling the startDrawingAnnotation()
method progresses.
See also
annotationDrawingStart | event |
com.anychartstock.events.AnnotationEvent
Dispatched when an annotation drawing is started by calling the startDrawingAnnotation()
method.
See also
annotationEditingFinish | event |
com.anychartstock.events.AnnotationEvent
Dispatched when user finishes editing an annotation.
annotationEditingProgress | event |
com.anychartstock.events.AnnotationEvent
Dispatched when an annotation editing progresses.
annotationEditingStart | event |
com.anychartstock.events.AnnotationEvent
Dispatched when an annotation editing is started.
annotationRemove | event |
com.anychartstock.events.AnnotationEvent
Dispatched when user removes an annotation using DELETE key.
annotationSelect | event |
com.anychartstock.events.AnnotationEvent
Dispatched when an annotation is selected.
chartMouseDown | event |
com.anychartstock.events.StockChartMouseEvent
com.anychartstock.events.StockChartMouseEvent.MOUSE_DOWN
Dispatched when mouse button is pressed on chart plotting area.
The StockChartMouseEvent.MOUSE_DOWN
dispatched when mouse button is pressed on chart plotting area.
chartMouseMove | event |
com.anychartstock.events.StockChartMouseEvent
com.anychartstock.events.StockChartMouseEvent.MOUSE_MOVE
Dispatched when mouse moves over chart plotting area.
The StockChartMouseEvent.MOUSE_MOVE
dispatched when mouse is moving over chart plotting area.
chartMouseOut | event |
com.anychartstock.events.StockChartMouseEvent
com.anychartstock.events.StockChartMouseEvent.MOUSE_OUT
Dispatched when mouse leaves chart plotting area.
The StockChartMouseEvent.MOUSE_OUT
dispatched when mouse leaves chart plotting area.
chartMouseOver | event |
com.anychartstock.events.StockChartMouseEvent
com.anychartstock.events.StockChartMouseEvent.MOUSE_OVER
Dispatched when chart plotting area is hovered by mouse.
The StockChartMouseEvent.MOUSE_OVER
dispatched when chart plotting area is hovered by mouse.
chartMouseUp | event |
com.anychartstock.events.StockChartMouseEvent
com.anychartstock.events.StockChartMouseEvent.MOUSE_UP
Dispatched when mouse button is released.
The StockChartMouseEvent.MOUSE_UP
dispatched when mouse button is released.
eventMarkerClick | event |
com.anychartstock.events.EventMarkerEvent
com.anychartstock.events.EventMarkerEvent.EVENT_MARKER_CLICK
Dispatched when user clicks an event marker.
The EventMarkerEvent.EVENT_MARKER_CLICK
dispatched when a user clicks an event marker.
eventMarkerDeselect | event |
com.anychartstock.events.EventMarkerEvent
com.anychartstock.events.EventMarkerEvent.EVENT_MARKER_DESELECT
Dispatched when an event marker is deselected.
The EventMarkerEvent.EVENT_MARKER_DESELECT
dispatched when an event marker is deselected.
eventMarkerDoubleClick | event |
com.anychartstock.events.EventMarkerEvent
com.anychartstock.events.EventMarkerEvent.EVENT_MARKER_DOUBLE_CLICK
Dispatched when user double clicks an event marker.
The EventMarkerEvent.EVENT_MARKER_DOUBLE_CLICK
dispatched when a user double clicks an event marker.
eventMarkerMouseOut | event |
com.anychartstock.events.EventMarkerEvent
com.anychartstock.events.EventMarkerEvent.EVENT_MARKER_MOUSE_OUT
Dispatched when mouse leaves an event marker.
The EventMarkerEvent.EVENT_MARKER_MOUSE_OUT
dispatched when mouse leaves an event marker.
eventMarkerMouseOver | event |
com.anychartstock.events.EventMarkerEvent
com.anychartstock.events.EventMarkerEvent.EVENT_MARKER_MOUSE_OVER
Dispatched when an event marker is hovered by mouse.
The EventMarkerEvent.EVENT_MARKER_MOUSE_OVER
dispatched when an event marker is hovered by mouse.
eventMarkerSelect | event |
com.anychartstock.events.EventMarkerEvent
com.anychartstock.events.EventMarkerEvent.EVENT_MARKER_SELECT
Dispatched when an event marker is selected.
The EventMarkerEvent.EVENT_MARKER_SELECT
dispatched when an event marker is selected.
mergedEventMarkerClick | event |
com.anychartstock.events.MergedEventMarkerEvent
com.anychartstock.events.MergedEventMarkerEvent.MERGED_EVENT_MARKER_CLICK
Dispatched when user clicks an event marker group.
The MergedEventMarkerEvent.MERGED_EVENT_MARKER_CLICK
dispatched when a user clicks an event marker group.
mergedEventMarkerDeselect | event |
com.anychartstock.events.MergedEventMarkerEvent
com.anychartstock.events.MergedEventMarkerEvent.MERGED_EVENT_MARKER_DESELECT
Dispatched when a merged event marker group is deselected.
The MergedEventMarkerEvent.MERGED_EVENT_MARKER_DESELECT
dispatched when a merged event marker group is deselected.
mergedEventMarkerDoubleClick | event |
com.anychartstock.events.MergedEventMarkerEvent
com.anychartstock.events.MergedEventMarkerEvent.MERGED_EVENT_MARKER_DOUBLE_CLICK
Dispatched when user double clicks a merged event marker group.
The MergedEventMarkerEvent.MERGED_EVENT_MARKER_DOUBLE_CLICK
dispatched when a user double clicks an event marker.
mergedEventMarkerMouseOut | event |
com.anychartstock.events.MergedEventMarkerEvent
com.anychartstock.events.MergedEventMarkerEvent.MERGED_EVENT_MARKER_MOUSE_OUT
Dispatched when mouse leaves a merged event marker group.
The MergedEventMarkerEvent.MERGED_EVENT_MARKER_MOUSE_OUT
dispatched when mouse leaves a merged event marker group.
mergedEventMarkerMouseOver | event |
com.anychartstock.events.MergedEventMarkerEvent
com.anychartstock.events.MergedEventMarkerEvent.MERGED_EVENT_MARKER_MOUSE_OVER
Dispatched when user hovers a merged event marker group.
The MergedEventMarkerEvent.MERGED_EVENT_MARKER_MOUSE_OVER
dispatched when a user hovers a merged event marker group.
mergedEventMarkerSelect | event |
com.anychartstock.events.MergedEventMarkerEvent
com.anychartstock.events.MergedEventMarkerEvent.MERGED_EVENT_MARKER_SELECT
Dispatched when a merged event marker group is selected.
The MergedEventMarkerEvent.MERGED_EVENT_MARKER_SELECT
dispatched when a merged event marker group is selected.
selectedRangeChange | event |
com.anychartstock.events.SelectedRangeChangeEvent
com.anychartstock.events.SelectedRangeChangeEvent.SELECTED_RANGE_CHANGE
Dispatched when the selected range of a chart is changed.
The SelectedRangeChangeEvent.SELECTED_RANGE_CHANGE
dispatched when the selected range of a chart is changed.
stockDataLoad | event |
stockDraw | event |
VERSION | constant |
public static const VERSION:String = "1.7.0 Revision #${dist.revision}"
Component version