sets the pivot structure
config | object | the configuration object |
$$("pivot").setStructure(config);
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"}]
}