fix battery volatge unit in overview for sodistore home, pro, grid

This commit is contained in:
Yinyin Liu 2026-04-20 10:00:48 +02:00
parent 4a6caa9ed3
commit 5666191a6b
1 changed files with 2 additions and 0 deletions

View File

@ -244,6 +244,8 @@ export const getChartOptions = (
const seriesName = w.config.series[seriesIndex].name;
if (seriesName === 'Battery SOC') {
return val.toFixed(2) + ' %';
} else if (seriesName === 'Battery Voltage') {
return val.toFixed(2) + ' (V)';
} else {
return (
formatPowerForGraph(val, chartInfo.magnitude).value.toFixed(