Energy Sankey chart card (#23002)

* WIP: sankey chart

* basic sankey chart

* dynamic size of last section

* basic energy-sankey card

* add floors, areas & passthrough

* order by floor level, add colors & exess energy nodes

* tweak nodes

* add tooltips and better layout and responsiveness

* WIP vertical layout

* fix height when not in sections

* handle labels in vertical mode

* remove from energy dashboard for now

* lint fix

* PR comments

* use ResizeController instead of ResizeObserver

* look up device area

* code clarity improvement
This commit is contained in:
Petar Petrov
2024-12-22 18:25:13 +02:00
committed by GitHub
parent 7900eb4054
commit 4b7acbb766
5 changed files with 994 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ const LAZY_LOAD_TYPES = {
import("../cards/energy/hui-energy-sources-table-card"),
"energy-usage-graph": () =>
import("../cards/energy/hui-energy-usage-graph-card"),
"energy-sankey": () => import("../cards/energy/hui-energy-sankey-card"),
"entity-filter": () => import("../cards/hui-entity-filter-card"),
error: () => import("../cards/hui-error-card"),
gauge: () => import("../cards/hui-gauge-card"),