mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Fix energy dashboard data formatting (#24101)
This commit is contained in:
parent
a30e501031
commit
9ab5be4730
@ -225,7 +225,7 @@ export function fillDataGapsAndRoundCaps(datasets: BarSeriesOption[]) {
|
|||||||
if (x === undefined) {
|
if (x === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (x !== bucket) {
|
if (Number(x) !== bucket) {
|
||||||
datasets[i].data?.splice(index, 0, {
|
datasets[i].data?.splice(index, 0, {
|
||||||
value: [bucket, 0],
|
value: [bucket, 0],
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user