Class DataSet

DataSet is objects which holds all information about data.

Index

Properties

Properties

public categoryField: string

Category field name in your dataProvider.

public color: string

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

public compared: boolean

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.

public dataProvider: Array<any>

Data provider of the data set.

public fieldMappings: Array<any>

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"}.

public showInCompare: boolean

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

default

true

public showInSelect: boolean

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

default

true

public stockEvents: StockEvent[]

Array of StockEvent objects.

public title: string

DataSet title.