mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Don't round statistic values before plotting (#18312)
This commit is contained in:
parent
17df761a1b
commit
96fbd8aefb
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user