opennem / opennem-fe

An Open Platform for National Electricity Market Data
https://opennem.org.au
MIT License
63 stars 11 forks source link

disturbing chart presentation when start of series (30 min vs 5 min) are misaligned #137

Open simonhac opened 1 year ago

simonhac commented 1 year ago

misaligned data:

image
simonhac commented 1 year ago

wonder if it's because most of the series start at 9.05, whereas the solar series starts at 9.00:

image

image

simonhac commented 1 year ago

@chienleng and @nc9 how do we want to solve this?

  1. FE: skip the first rooftop data point (30 min aligned) if the rest of the data points (5 min aligned) aren't available
  2. BE: tweak 7d.json to pull back the start date on the 5 minute fuel techs to align with the first rooftop data point
  3. something else?
simonhac commented 1 year ago

if we tweak the data, as in 2 above, then the data will cover slightly more than 7 days — so we'll need to trim the data (depending on whether the user is viewing 5 min or 30 min resolution) to ensure accuracy.

image
nc9 commented 1 year ago

BE: tweak 7d.json to pull back the start date on the 5 minute fuel techs to align with the first rooftop data point

I've got this happening locally at the moment - it's not too bad a change. I'm just going to test it to work out what the impacts are on API endpoints and elsewhere