RatingChartSerie.updateAsAggregated

Syntax

updateAsAggregated(serie: PP.Ui.RatingChartSerie);

Parameters

serie. Data series which value will be added to the principal data series.

Description

The updateAsAggregated method sums up data series values with values of another series.

Comments

The method sums up values of all value columns.

Example

Executing the example requires that the page contains the RatingChart component named ratingChart (see Example of Creating the RatingChart Component). Add to the first data series value the value of the second series, display recieved amount to the console and then update the first data series:

// Get the first data series
serie1 = ratingChart.getSerie(0);
// Get the second data series
serie2 = ratingChart.getSerie(1);
// Add to the first data series value the second series value
serie1.updateAsAggregated(serie2);
// Display received amount by the current value column
console.log("Amount of the first and second series values: " + serie1.getValue());
// Update the first series
serie1.updateData();

After executing the example the console displays total of the first and second data series.

See also:

RatingChartSerie