OpenEnergyDashboard / OED

Open Energy Dashboard (OED)
Mozilla Public License 2.0
75 stars 263 forks source link

map values don't honor interval #1140

Closed huss closed 6 months ago

huss commented 6 months ago

Describe the bug

If map and bar have different bar/map intervals then the value on map is generally wrong. It should be the last bar divided by the number of days.

To Reproduce

Steps to reproduce the behavior:

  1. Go to map graphic and select a meter. Note the value.
  2. Go to bar graphic and the last bar dates should be the same and the value will be the same (multiplied by the number of days).
  3. Change the bar interval and note value on last bar.
  4. Go to map. The value will have changed even though the map interval did not. Also, the value will not readily match any of the bar values.
  5. Change map interval to match bar. The value now agree again.

Expected behavior

Map value should correctly reflect map interval.

Additional context

There is a discussion of whether the map and bar interval should be kept the same. If that is done then it may impact this issue.

huss commented 6 months ago

Overlaps newer issue #1163 so closing this one.