From 96fbd8aefbae760fa0c34a215a8e9f4e77069690 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Sat, 21 Oct 2023 08:19:03 -0700 Subject: [PATCH] Don't round statistic values before plotting (#18312) --- src/components/chart/statistics-chart.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/chart/statistics-chart.ts b/src/components/chart/statistics-chart.ts index 22422da297..2e674a51f6 100644 --- a/src/components/chart/statistics-chart.ts +++ b/src/components/chart/statistics-chart.ts @@ -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); });