sets the pivot structure

void setStructure(object config);


configobjectthe configuration object




Format of a config object is the same as the "structure" parameter of the constructor:

  • for Pivot
var config = {
    groupBy: "continent",
    values: [
        {name:"balance", operation:"max", color: "#eed236"},
        {name:"oil", operation:"max", color: "#36abee"}
    filters:[{name:"year", type:"select"}]
  • for Pivot Chart
var config = {
    groupBy: "year",
    values: [{name:"balance", operation:"sum", color: "#eed236"}],
    filters:[{name:"name", type:"select"}]
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui library and page of pivot table web product.