Packagecom.amcharts.stock
Classpublic class DataSet
InheritanceDataSet Inheritance flash.events.EventDispatcher

DataSet class.



Public Properties
 PropertyDefined by
  categoryField : String
Category field name in your dataProvider.
DataSet
  color : Number
Color of the data set
DataSet
  compared : Boolean
Whether this data set is selected for comparing.
DataSet
  dataProvider : Object
Data provider of the data set.
DataSet
  description : String
Description of the data set.
DataSet
  fieldMappings : Array
Array of field mappings.
DataSet
  showInCompare : Boolean
Specifies whether this data set should be visible in "compare to" list.
DataSet
  showInSelect : Boolean
Specifies whether this data set should be visible in "select" dropdown.
DataSet
  stockEvents : Array
Array of stock events.
DataSet
  stockEventsDataProvider : ArrayCollection
ArrayCollection of stock events.
DataSet
  title : String
DataSet title
DataSet
  uid : String
Unique id of a data set.
DataSet
Public Methods
 MethodDefined by
  
Constructor.
DataSet
  
Adds stock event to the data set.
DataSet
  
Removes stock event from the data set.
DataSet
Property detail
categoryFieldproperty
categoryField:String  [read-write]

Category field name in your dataProvider.

Implementation
    public function get categoryField():String
    public function set categoryField(value:String):void
colorproperty 
color:Number  [read-write]

Color of the data set

Implementation
    public function get color():Number
    public function set color(value:Number):void
comparedproperty 
compared:Boolean  [read-write]

Whether this data set is selected for comparing.

The default value is false.

Implementation
    public function get compared():Boolean
    public function set compared(value:Boolean):void
dataProviderproperty 
dataProvider:Object  [read-write]

Data provider of the data set.

Implementation
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
descriptionproperty 
description:String  [read-write]

Description of the data set. It will be displayed in chartHeader if header is created.

Implementation
    public function get description():String
    public function set description(value:String):void
fieldMappingsproperty 
fieldMappings:Array  [read-write]

Array of field mappings.

Implementation
    public function get fieldMappings():Array
    public function set fieldMappings(value:Array):void
showInCompareproperty 
showInCompare:Boolean  [read-write]

Specifies whether this data set should be visible in "compare to" list.

The default value is true.

Implementation
    public function get showInCompare():Boolean
    public function set showInCompare(value:Boolean):void
showInSelectproperty 
showInSelect:Boolean  [read-write]

Specifies whether this data set should be visible in "select" dropdown.

The default value is true.

Implementation
    public function get showInSelect():Boolean
    public function set showInSelect(value:Boolean):void
stockEventsproperty 
stockEvents:Array  [read-write]

Array of stock events.

Implementation
    public function get stockEvents():Array
    public function set stockEvents(value:Array):void
stockEventsDataProviderproperty 
stockEventsDataProvider:ArrayCollection  [read-write]

ArrayCollection of stock events. Use it instead of stockEvents for setting events if you want changes in your events data provider to be monitored. If you add/remove stock events to stockEventsDataProvider object, the chart will update automatically.

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

DataSet title

Implementation
    public function get title():String
    public function set title(value:String):void
uidproperty 
uid:String  [read-write]

Unique id of a data set.

Implementation
    public function get uid():String
    public function set uid(value:String):void
Constructor detail
DataSet()constructor
public function DataSet()

Constructor.

Method detail
addStockEvent()method
public function addStockEvent(value:StockEvent):void

Adds stock event to the data set.

Parameters
value:StockEvent
removeStockEvent()method 
public function removeStockEvent(value:StockEvent):void

Removes stock event from the data set.

Parameters
value:StockEvent