diff --git a/src/app/battery/battery.service.ts b/src/app/battery/battery.service.ts index 05dca28..528eb5c 100644 --- a/src/app/battery/battery.service.ts +++ b/src/app/battery/battery.service.ts @@ -35,7 +35,7 @@ export class BatteryService { const last = module[module.length - 1]; return { charge: last.charge, - chargeHistory: module.map(row => ({name: row.timestamp, value: row.temp})), + chargeHistory: module.map(row => ({name: row.timestamp, value: row.charge})), lastUpdate: last.timestamp, name: `Module ${i + 1}`, temp: last.temp,