returns the current Pivot structure
| object | the current Pivot structure |
const structure = $$("pivot").getStructure();
Format of an object being returned is the same as the structure parameter of the constructor:
const structure = $$("pivot").getStructure();
/*
{
columns: ["year"],
filters: [
{
name: "continent",
value: {
condition: {
"filter": "c",
"type": "notContains"
},
includes: [
"Europe",
"Asia"
]
}
}
],
groupBy: "year",
rows: ["form", 'name"],
values: [{name: "oil", operation: "min", color: "#e33fc7"}, ...]
}
*/