Natixar / natixar-frontend

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

Bar Chart Compare Option Shows Bogus Data #58

Open lepeuvedic opened 1 month ago

lepeuvedic commented 1 month ago

Problem

The "Compare to Previous Year" button should be more contextual, but the core of the problem reported here is, that activating the function shows bogus ever changing data. On the bar chart below, the time axis covers two year (March is missing, but that's another issue). The comparison data should just be a shifted image of year 2022 data. Instead randomly changing values are shown. Bogus Previous Year Data

Steps to Reproduce

  1. Authenticate and enter the Dashboard
  2. Click the button "Compare to Previous Year"
  3. Observe obviously incorrect and randomly changing data.

Desired behavior

The bar chart should display data from one year before (e.g. same month of the preceding year) when the "Compare to Previous Year" button is active. Usually, displaying the labels along the X axis will be difficult long before displaying additional bars for the same label becomes a difficulty, but that's another topic. The UI is currently not optimized to display a large number of bars.

Math712 commented 1 month ago

Partially fix with PR #79, but not closed