Don't return charge current / voltage to zero for empty db entries

Depending on the failure mode different invalid charge entries might end up in
the database. Only return the voltage and current back to zero if the car
actually reports that it has been disconnected.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add Power graph to Energy graph

This makes it easier to judge the tapering of Superchargers

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Show two digit minutes in Energy graph tooltip

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Color the tick labels in the energy charts

This way it's more intuitive which scale corresponds to which graph.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Allign charts in the energy page

This makes the charts much easier to interpret

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Catch another potential charging state

'Starting' and 'Stopping' should be handled like 'Disconnected', not like a
missing sample.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Print the correct power maxima on energy chart

Basing this on the charge rate as reported by the API clearly was wrong.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Merge pull request #42 from dirkhh/energyUpdates

Energy updates