Fix unit in consumers pie chart (kWh -> kW)
This commit is contained in:
parent
60d5701600
commit
a180e1e949
@ -192,7 +192,7 @@ ChartView {
|
||||
color: d.thingsColorMap.hasOwnProperty(consumer) ? d.thingsColorMap[consumer] : "transparent"
|
||||
text: "%1 %2"
|
||||
.arg((consumerDelegate.value / (consumerDelegate.value > 1000 ? 1000 : 1)).toFixed(1))
|
||||
.arg(consumerDelegate.value > 1000 ? "kWh" : "W")
|
||||
.arg(consumerDelegate.value > 1000 ? "kW" : "W")
|
||||
Layout.fillWidth: true
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
font: Style.smallFont
|
||||
|
||||
Reference in New Issue
Block a user