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

fieldList

defines an array of fields from the dataset that will be used in Pivot

array fieldList;

Example

var myPivot = new dhx.Pivot("container", {
    data: dataset,                 
    fields: {
        // initial pivot structure
    },
    fieldList: [      
        { id: "name", label: "name" },
        { id: "year", label: "year" },
        { id: "continent", label: "Continent" },
        // more fields
    ]
});

Details

You can also use this property to set custom labels for fields.

Related sample:  Initialization

See also
Back to top