returns the current pivot configuration

object getStructure();


objectthe current pivot structure


var config = $$("pivot").getStructure();


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 ui component library and page of javascript pivot grid product.