Important version information!

You are browsing a class reference for Version 2 of the JavaScript Charts. If you are using Version 3 (current), please click here.


DataSet is objects which holds all information about data.


categoryFieldString Category field name in your dataProvider.
colorString Color of the data set. One of colors from AmStockChart.colors array will be used if not set.
comparedBooleanfalseWhether 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.
dataProviderArray Data provider of the data set.
fieldMappingsArray 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"}.
showInCompareBooleantrueSpecifies whether this data set should be visible in "compare to" list.
showInSelectBooleantrueSpecifies whether this data set should be visible in "select" dropdown.
stockEventsArray Array of StockEvent objects.
titleString DataSet title.


DataSet class does not have any methods.


DataSet class does not have any events.