mikenikles / your-analytics

Web analytics platform. Open source, privacy-focused and simple.
https://your-analytics.org
40 stars 8 forks source link

Fix the visitors chart interactivity #180

Closed mikenikles closed 4 years ago

mikenikles commented 4 years ago

Steps to reproduce

  1. Look at the last 7 days
  2. Click on a day in the visitors chart

Actual result The dashboard quickly displays the correct day's data, before reloading and setting the filters back to "Last 7 days"

Expected result The dashboard displays data for the selected day. The date range filters are set accordingly.

Notes This is due to the new isLocalDateChange variable in the date-range.svelte component. It works within that component, but breaks when a day is selected in the visitors chart. The fix is to make isLocalDateChange a store and use it in the visitors chart.