mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix device energy graphs (#17754)
This commit is contained in:
parent
68fa67e77a
commit
c3a36efaa4
@ -130,7 +130,7 @@ export class HuiEnergyDevicesGraphCard
|
||||
},
|
||||
},
|
||||
},
|
||||
elements: { bar: { borderWidth: 1.5, borderRadius: 4 } },
|
||||
elements: { bar: { borderWidth: 1, borderRadius: 4 } },
|
||||
plugins: {
|
||||
tooltip: {
|
||||
mode: "nearest",
|
||||
@ -292,6 +292,7 @@ export class HuiEnergyDevicesGraphCard
|
||||
});
|
||||
|
||||
this._chartData = {
|
||||
labels: chartData.map((d) => d.y),
|
||||
datasets,
|
||||
};
|
||||
await this.updateComplete;
|
||||
|
Loading…
x
Reference in New Issue
Block a user