Natixar / natixar-frontend

The static front end of the Natixar SaaS platform
0 stars 5 forks source link

Intensity Chart Does Not Actually Show Intensity #117

Closed lepeuvedic-natixar closed 5 months ago

lepeuvedic-natixar commented 5 months ago

Problem

Always Same Filtered for Upstream

I wanted to check if the "Scope" filter actually worked, and it did. What's even better? It somehow fixed #116 .

The data in this display is really simple : only one compressed data point (CDP). By definition is a constant emission over some period of time. We therefore expect to see a flat rectangle in the Intensity Chart. Instead it is wavy.

Upon closer examination, the wave pattern exactly follows the months duration, with a bigger dip in February, gentle dips in April, June, Sep, Nov, waves on the rest (31 day long months) and flat over July-Aug (both 31 days) and Dec-Jan (same).

Steps to Reproduce

  1. Connect the front-end to a dev back-end set up to deliver random 2 CDP data sets.
  2. Observe the waviness that follows the duration of the months.

Expected Behavior

The Intensity Chart must be FLAT when intensity is constant. Intensity will often be constant with simplified 2 CDPs data sets, so it is a good simplified environment in which to test the front end.

ChrisNatixar commented 5 months ago

We think this is displaying correctly, a constant intensity will show a small variation in the chart based on the number of days in the month. e.g. an intensity of 10 tonnes/day is 300 tonnes/month or 310 tonnes/month depending on the number of days in the month.