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

data

a JS array with data for Pivot

array data;

Example

var dataset = [
    { "name": "India",   "year": 2005,   "continent": "Asia",    "gdp": 808.744 },
    { "name": "Chad",    "year": 2011,   "continent": "Africa",  "gdp": 9.345 }, 
    { "name": "Belarus", "year": 2011,   "continent": "Europe",  "gdp": 55.136 },
    // more fields
];
 
var myPivot = new dhx.Pivot("container", {
    data: dataset,                     fields: {
        // initial pivot structure
    },
    fieldList: [      
        // the full list of fields
    ]
});

Details

Related sample:  Initialization

See also
Back to top