Skip to content

Commit

Permalink
Update chart.module.js
Browse files Browse the repository at this point in the history
  • Loading branch information
s-egge committed Sep 24, 2024
1 parent 145d3f5 commit 588e421
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/store/chart.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 588e421

Please sign in to comment.