Initially refactored statistics module to simplify value types changing.

This commit is contained in:
23rd
2024-04-11 17:37:54 +03:00
committed by John Preston
parent 7ffa9844e2
commit a37cbd7d05
14 changed files with 97 additions and 71 deletions
@@ -81,7 +81,7 @@ PiePartData PiePartsPercentageByIndices(
sums.reserve(chartData.lines.size());
auto totalSum = 0.;
for (const auto &line : chartData.lines) {
auto sum = 0;
auto sum = ChartValue(0);
for (auto i = xIndices.min; i <= xIndices.max; i++) {
sum += line.y[i];
}