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
    ]
});

Related samples

See also
Back to top