Information on this website refers to a deprecated product, and is provided only for historical reference. Please use the Version Switcher above to select an appropriate documentation website for the product you are using.

DataSet

Type class

DataSet is objects which holds all information about data.

Inheritance

DataSet does not extend any other symbol.

DataSet is not extended by any other symbol.

Properties

categoryField
#

Type string

Default

Category field name in your dataProvider.

color
#

Type string

Default

Color of the data set. One of colors from AmStockChart.colors array will be used if not set.

compared
#

Type boolean

Default false

Whether this data set is selected for comparing. If you change this property, you should call stockChart.validateData() method in order the changes to be applied.

dataProvider
#

Type array

Default

Data provider of the data set.

fieldMappings
#

Type array

Default

Array of field mappings. Field mapping is an object with fromField and toField properties. fromField is a name of your value field in dataProvider. toField might be chosen freely, it will be used to set value/open/close/high/low fields for the StockGraph. Example: {fromField:"val1", toField:"value"}.

showInCompare
#

Type boolean

Default true

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

showInSelect
#

Type boolean

Default true

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

stockEvents
#

Type array

Default

Array of StockEvent objects.

title
#

Type string

Default

DataSet title.

Methods

DataSet does not have any methods.

Events

DataSet does not have any events.

Adapters

DataSet does not have any adapters.