Fixed issue with power display.
Refactoring of electricity summary update and piechart update.