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

fields

specifies the initial Pivot structure and fields, and sets the scheme for data analysis

object fields;

Example

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

Details

Related sample:  Initialization

See also
Back to top