defines an array of fields from the dataset that will be used in Pivot
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
]
});
You can also use this property to set custom labels for fields.
Related sample: Initialization