setIndAgg(report, ind, agg, objectType, callback);
report. PP.Exp.EaxAnalyzer. Express report instance.
ind. PP.Exp.EaxObjectIndicator. Metrics variants.
agg. PP.Exp.Ui.EaxAggregationFunction. Aggregation Type
objectType. PP.Exp.Ui.EaxObjectType. Visualizer type.
callback. PP.Delegate | Function. Callback function.
The setIndAgg method sets aggregation type for metrics.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component).
// Set metric type ind = PP.Exp.EaxObjectIndicator.Color; // Set aggregation method agg = PP.Exp.Ui.EaxAggregationFunction.Sum; // Set visualizer type type = PP.Exp.Ui.EaxObjectType.BubbleChart; // Set aggregation type for metrics eaxMdService.setIndAgg(eaxAnalyzer, ind, agg, type); // Get set aggregation type console.debug(eaxAnalyzer.getIndAgg(ind, type));
After executing the example the "sum" aggregation method is set for the "color" metric in the bubble chart visualizer, then this method is output to the console.
See also: