matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.93k stars 2.66k forks source link

Sparklines in Ecommerce widget broken when using Comparison with Date Range #19933

Open Starker3 opened 2 years ago

Starker3 commented 2 years ago

When Selecting a Date Range and comparing that Date Range with another preiod, the Ecommerce Widget sparklines show the incorrect values for the sparkline chart: image

In the demo the issue is the same, but with the added issue that the sparklines are also flat: image

To reproduce this:

  1. add the Ecommerce Overview widget to the Dashboard
  2. Select a Date Range and Select "Compare" to previous period
  3. Click on a metric that contains Revenue https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?period=range&date=2022-10-01,2022-11-01&category=Dashboard_Dashboard&subcategory=1&comparePeriods%5B%5D=range&compareDates%5B%5D=2022-08-30,2022-09-30
peterhashair commented 2 years ago

@Starker3 thank you for reporting this, I can reproduce this on our demo or locally. I believe there is a regression there.

peterhashair commented 2 years ago

It seems like when comparing, the revenue on the dataTable covert to string 'NZ$123' instead of float leading to a graphic loading error.

sgiehl commented 2 years ago

might be related to https://github.com/matomo-org/matomo/issues/15349

Starker3 commented 1 year ago

We have another email from a customer asking about this issue today.

AdamMcAddEm commented 2 months ago

I am also dealing with this issue. Impacts a parent company that leverages Matomo heavily for ecommerce with +30 brands and teams.