kcms/energy: Make graph vertical labels translatable

Some languages place the % sign before the value, so a fixed translated yUnit property doesn't work.

Instead, we can pass a closure/lambda that compose the translated string to the graph

Merge request reports

Loading