Don't round statistic values before plotting (#18312)

This commit is contained in:
karwosts 2023-10-21 08:19:03 -07:00 committed by GitHub
parent 17df761a1b
commit 96fbd8aefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,11 +411,7 @@ export class StatisticsChart extends LitElement {
} else {
val = stat[type];
}
dataValues.push(
val !== null && val !== undefined
? Math.round(val * 100) / 100
: null
);
dataValues.push(val ?? null);
});
pushData(startDate, new Date(stat.end), dataValues);
});