returns the current pivot configuration
object | the current pivot structure |
var config = $$("pivot").getStructure();
Format of a config object is the same as the "structure" parameter of the constructor:
var config = {
groupBy: "continent",
values: [
{name:"balance", operation:"max", color: "#eed236"},
{name:"oil", operation:"max", color: "#36abee"}
],
filters:[{name:"year", type:"select"}]
}
var config = {
groupBy: "year",
values: [{name:"balance", operation:"sum", color: "#eed236"}],
filters:[{name:"name", type:"select"}]
}