fix scaling problem when switching voltage

If a power system is switched from 12V to 24V, the initial value is used
to scale the plot, that means that the 24V trace will be out of range,
now the first displayed measurement is used instead.
Ideally it should query the database to find information about the
system: the PV model should indicate nominal voltage