From 588e421cae971fd7e05d50302b7b3a1a64a8df1c Mon Sep 17 00:00:00 2001 From: s-egge Date: Tue, 24 Sep 2024 11:37:45 -0700 Subject: [PATCH] Update chart.module.js --- src/store/chart.module.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/store/chart.module.js b/src/store/chart.module.js index 06a02456..e89bf6c6 100644 --- a/src/store/chart.module.js +++ b/src/store/chart.module.js @@ -75,6 +75,15 @@ const actions = { await chartModifier.postGetData(chartData, reqPayload, this, store) + // fix LINC meter being off by factor of 10 + // TODO: look into fixing data as it goes into the database instead of here + // See this issue for more info: https://github.com/OSU-Sustainability-Office/energy-dashboard/issues/341 + if (store.getters.meterGroupPath.split('_')[2] === '199' && store.getters.point === 'accumulated_real') { + chartData.data.map(d => { + d.y = d.y * 10 + }) + } + // fix PacificPower meters chart being filled by the energy_change chart modifier if (isPacificPowerMeter) { chartData.fill = false