sets fields structure for Pivot
fields | object | the fields object |
// defining fields object
var fields = {
rows: ["form", "name"],
columns: ["year"],
values: [
{ id: "oil", method: "max" },
{ id: "oil", method: "sum" }
]
}
// setting the fields object for Pivot
myPivot.setFields(fields);
Read more about the fields object attributes in the related section.