444B / streamlit-analytics2

👀 Track & visualize user interactions with your streamlit app
MIT License
14 stars 2 forks source link

Traffic plot improvement #18

Closed 444B closed 4 months ago

444B commented 4 months ago

Original issue by mateusccoelho on 2023-08-27 03:27:32+00:00

  1. Initialize the traffic counts with yesterday is not right because it's misleading. If one doesn't know how the package works, he/she will think that the first day had no visitors.
  2. If the computer running the Streamlit server is in a negative timezone, altair/javascript will parse dates wrong and "shift" dates by -1 day. This Stack Overflow thread explains the issue.

See plot below to visualize the two problems:

image

Notice the first day is 0 and that the counting started in 27th august, but there are no pageviews in this day.

444B commented 4 months ago

@mateusccoelho is this still relevant?

444B commented 4 months ago

@mateusccoelho I believe this is the current design that the first days metrics are not in the middle of the screen. It starts from the previous day to make a relative comparison and to show the increase or decrease for the days afterwards I do agree that this could be misleading.

This will be resolved once we introduce more granular timestamp data as requested in #31 Marking this issue as resolved - duplicate and planned work. Please share insights and comments on #31