namespace anychart.data Improve this Doc
Classes for handling data structures/sources
The following data types/hierarchy is supported:
|mapAsTable()||Maps passed data as an array of mappings. Data is expected to be a table, e.g. an array of arrays of values.|
|anychart.data.MapAsTableMode||Modes enum for anychart.data.mapAsTable() function.|
|anychart.data.Iterator||anychart.data.Iterator class is used to work with data in a View.|
|anychart.data.Mapping||Soecial View which allows to map anychart.data.Set storages.|
|anychart.data.Set||Linear data storage.|
|anychart.data.View||View is a representation of raw data.|
Maps passed data as an array of mappings. Data is expected to be a table, e.g. an array of arrays of values. The function treats the table as a source for several series of points, that have the same X value. Each row of the table is treated as a bunch of points, one for each series. Column number 0 is treated as an X value. Other columns (number per series depends on the opt_mode) are treated as data values.
|data||Array.<Array.<*>>||Source data table.|
|mode||anychart.data.MapAsTableMode | string||Mapping mode. VALUE means, that each series is represented by one column in the table + shared X column (own Y values), RANGE means two columns per series + shared X column (high and low values) and OHLC means four columns per series + shared X (open, high, low, close).|
|seriesCount||number||Explicit number of series to make mapping for. If not set, auto-determination by the first table row is used.|
Returns:Array.<anychart.data.Mapping> - Returns an array of mappings, one per series.