mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix energy dashboard data formatting (#24101)
This commit is contained in:
parent
9411a77f14
commit
2a0f69a629
@ -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