specifies the initial Pivot structure and fields, and sets the scheme for data analysis
var myPivot = new dhx.Pivot("container", {
data: dataset,
fields: {
rows: ["form", "name"],
columns: ["year"],
values: [{ id: "oil", method: "max" }, { id: "oil", method: "sum" }],
},
fieldList: [
// the list of fields
]
}
);
Related sample: Initialization