Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching evolution chart period might result in unexpected period displayed #18005

Open
sgiehl opened this issue Sep 15, 2021 · 0 comments
Open
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Design / UI For issues that impact Matomo's user interface or the design overall. c: Usability For issues that let users achieve a defined goal more effectively or efficiently.

Comments

@sgiehl
Copy link
Member

sgiehl commented Sep 15, 2021

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
@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. c: Design / UI For issues that impact Matomo's user interface or the design overall. labels Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Design / UI For issues that impact Matomo's user interface or the design overall. c: Usability For issues that let users achieve a defined goal more effectively or efficiently.
Projects
None yet
Development

No branches or pull requests

2 participants