mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-14 23:18:21 +00:00
Add Percentage in distribution card tooltip (#29555)
Add Percentage in tooltip
This commit is contained in:
@@ -61,6 +61,7 @@ class HaSegmentedBar extends LitElement {
|
||||
: html`
|
||||
<ha-tooltip for="segment-${index}" placement="top">
|
||||
${segment.label}
|
||||
(${((segment.value / totalValue) * 100).toFixed(1)}%)
|
||||
</ha-tooltip>
|
||||
`}
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user