Natixar / natixar-frontend

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

Date Range Filter Does Not Trigger Recomputation #57

Closed lepeuvedic closed 3 months ago

lepeuvedic commented 4 months ago

Problem

The date range picker gadget does not have any effect either on the total metric in the donut chart, or on the time axis of the Stacked Areas Chart and the Bar Chart lower on the page.

Steps to Reproduce:

  1. Authenticate and enter the Dashboard
  2. Open the Date Range picker widget
  3. Click "6 months", close the Date Range picker, click "Apply"
  4. Observe that the indicated value in the donut chart is the same
  5. Observe that the time axis of Stacked Areas Chart and the Bar Chart shows the same range, which is different from the selection made.

Desired Behavior

While the front end will usually fetch more data than the requested time range, for the purpose of displaying year on year comparisons or trends, the charts must only display the portion of data configured in the Date Range picker gadget. The totalized metric shown in the donut chart must represent the emissions in the selected period.

Math712 commented 4 months ago

Date Range Filter Trigger Reloading of data but the data send by back are always the same,