mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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 {
|
} else {
|
||||||
val = stat[type];
|
val = stat[type];
|
||||||
}
|
}
|
||||||
dataValues.push(
|
dataValues.push(val ?? null);
|
||||||
val !== null && val !== undefined
|
|
||||||
? Math.round(val * 100) / 100
|
|
||||||
: null
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
pushData(startDate, new Date(stat.end), dataValues);
|
pushData(startDate, new Date(stat.end), dataValues);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user