electricitymaps-contrib icon indicating copy to clipboard operation
electricitymaps-contrib copied to clipboard

Faded bar on origin of electricity graph

Open gwpicard opened this issue 1 year ago • 0 comments

Describe the bug The penultimate top bar for "net" imports on the origin of electricity graph was showing as fading to gray.

To Reproduce Unfortunately, I wasn't able to find the right parameters for this as the data refreshed on the hour. PT looks ok now but it might occur again if real-time data is being estimated (and exchanges are not available since they are not estimated).

Expected behavior We should only see a complete bar graph without any colour changes.

Screenshots Screenshot 2022-08-08 at 16 47 16

Additional context According to @corradio, it may been happening because:

the last gradient stop must be based on an unknown value (when the interconnector disappears). The unknown value maps to gray, whereas it should instead be replaced by the last color of the timeseries.

gwpicard avatar Aug 09 '22 09:08 gwpicard