hd-sankey
Where something goes, as bands as wide as how much, from left to right: an hd-flow inside per flow (energy from the grid, solar and the battery to the house and its devices). Each node is named with what passes through it. A node takes the colour of the first flow from it that has one, else the theme’s chart colours in turn. Bands can be hovered for their amount; nothing moves. Parts: ::part(band), ::part(node), ::part(label).
| Attribute | What it is |
|---|---|
unit | Shown after every amount, e.g. kWh. |
decimals | Digits after the decimal point.Default 1. |
<hd-sankey unit="kWh"> <hd-flow from="Solar" to="Home" value="{{ energy.today.solar }}" color="lit"></hd-flow> <hd-flow from="Grid" to="Home" value="2.1"></hd-flow></hd-sankey>