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

Related samples

See also
Back to top