?startDate=2019-06-23
For the bar graph to show stats starting from that date, but not otherwise changing.
The bar graph greatly expanded the range, i.e. individual day-bars became much narrower, and in some cases the dates became completely jumbled up.
Replicated in Chrome and Firefox, on the user's site, my own site, and a Jetpack site.
Stats page on initial load:
Stats page after reloading with the date query:
Reported via the support forums:
https://en.forums.wordpress.com/topic/stats-history-is-askew-i-e-not-in-order/
I have another report of this on a user's site. I am have also been able to reproduce the same issue as outlined above on my own Atomic site.
14750462-hc
2294839-zen
We have another report of this in 2449437-zen. The user shared this screenshot that shows not only the months out of order, but also a very different "Days" view, here:
_Screenshot direct link:_ https://cld.wthms.co/AYFawu
Compare this to a screenshot I created after accessing the user's dashboard, here:
_Screenshot direct link:_ https://cld.wthms.co/h305UI
From this user's perspective there are two issues:
The user is using Windows (looks like Windows 10 based on another version of their screenshot), and Firefox.
I tested in Firefox Developer Edition, v71.0b4 on macOS 10.14.6
I have a similar report of this when navigating the Calypso navigation and the navigating back to Stats. Only one date is shown:
Image Link: https://d.pr/i/Vpgu2o
I just ran into the same issue that @chaselivingston reported above. While testing the desktop app, and then testing in the browser, I found that the x-labels on the stats graphs disappear. It seems to be related to navigating quickly, before the stats graph fully loads (in my case, quickly navigating between the Days/Weeks/Months/Years graphs):
Tested in WPDesktop 6.0.1-beta2 and Chrome 83.0.4103.116 on macOS 10.15.5.
Providing an update on the fix I'm working on -- there are a couple of issues here.
There's an initial race condition when we determine the size of the chart. When the size of the chart is calculated as zero, and those values are used after the actual size of the chart, the x-axis uses the zero width chart to calculate where to place the labels. This results in the missing x-axis labels that you see.
Regarding the second issue, there are cases where the data that is queried for gets appended to the existing data. I'm still working on resolving this, but this results in the out-of-order data that you see.
There's another issue here, where queried for data gets appended to the existing data. We use the incorrect data set and show that there's "No Activity This Period". I'm still working on resolving this as well.
Thanks for the update, @krymson24! Feel free to open separate PRs for fixing the different issues. There is no need to fix them all in one single PR 馃檪
Thanks for the advice @mmtr! Taking your advice and spinning out a separate ticket for the other two issues.
Most helpful comment
Providing an update on the fix I'm working on -- there are a couple of issues here.
There's an initial race condition when we determine the size of the chart. When the size of the chart is calculated as zero, and those values are used after the actual size of the chart, the x-axis uses the zero width chart to calculate where to place the labels. This results in the missing x-axis labels that you see.
Regarding the second issue, there are cases where the data that is queried for gets appended to the existing data. I'm still working on resolving this, but this results in the out-of-order data that you see.
There's another issue here, where queried for data gets appended to the existing data. We use the incorrect data set and show that there's "No Activity This Period". I'm still working on resolving this as well.