@sgiehl opened this Issue on September 15th 2021 Member

In evolution charts it's possible to select a period the evolution chart should display. This defaults to the period that is currently selected in Matomo.
Switching the selected period in the evolution chart to a higher period works without problems. But switching back to a lower period afterwards results in an unexpected behavior.

Expected Behavior

When switching between the periods in evolution chart the last period being displayed in the evolution chart should always stay the same.

Current Behavior

When switching between the periods the last period being display switches to the last period of the bigger one, chosen before.
e.g. when viewing a week like 2021-08-16 to 2021-08-22 and then switching to year and back to week, the last period visible in the evolution chart will change to 2021-12-27 to 2022-01-02

Possible Solution

The last period visible in evolution charts should never be later than the period chosen in the period selector.

Steps to Reproduce (for Bugs)

  1. Go to https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?idSite=1&period=week&date=2021-09-02&segment=&category=Referrers_Referrers&subcategory=General_Overview
  2. Switch the period of the evolution chart to year
  3. Switch the period back to week
  4. See that the evolution chart now ends at the end of the year
Powered by GitHub Issue Mirror