Check documentation for the latest version of DHTMLX Pivot load Pivot Docs

load

loads data into Pivot from an external file

object load(string path, [string|function mode] );
pathstringthe path to an external file
modestring|functionoptional, the type of data to load: "json" (default) or "csv", or a data driver constructor
objecta promise object

Example

// default loading
pivot.load("dataset.json");
 
// loading from a CSV file
pivot.load("dataset.csv", "csv");
 
// loading from a CSV file with a data driver
pivot.load("../common/dataset.csv", new dhx.data.CsvDriver({
    names:["name","year","continent","form","gdp","oil","balance","when"]
}));

Details

Related sample:  Load data in JSON and CSV formats

See also
Back to top