Replies: 11 comments 1 reply
-
Was just about to open the same issue, I'm experiencing the same issues as described above. I think this might have to do with the recent time change from summer to winter-time in the EU. Clocks were set back one hour last night and I think this might have screwed over some of the queries that are being made to fetch data from the database. Opening F12 and reloading the page with "Last 24 hours" selected gives some insight into that. Converting epoch times back to readable time using epochconverter shows the start date at: For the "Today" tab the request looks like this: I can confirm the graphs were working as expected yesterday, so before the time change to winter time happened in the EU. Running Hope I was able to provide some useful information. If I can do any further testing please let me know! |
Beta Was this translation helpful? Give feedback.
-
Thanks, Eike. I too am in Europe (UK) and so am also within 24 hours of a summer/winter time change. Since I have no events set up I cannot reproduce the failed GET on events. However, I did look at the GETs for pageviews (when set to Today / Last 24 hours) - both settings succeed for me and do seem to contain data; it's just that the data fails to render. This may explain the 'lines appear to start rendering but fade to nothing' behaviour I am seeing, and would point to this part of the issue lying somewhere in the rendering code. It seems likely that the problem will appear to go away (at least in Europe) some time overnight, when the earlier bound of the 'last 24 hours'/'today' thing is once again in the same TZ as the later one. |
Beta Was this translation helpful? Give feedback.
-
FWIW, here is a screenshot of one of my empty barcharts: The (somewhat pathetically tiny) figures at the top indicate that the chart is receiving data. But the times are rendered thus:
However, due to the summer/winter time change, 2am happened twice last night, so we should ideally see something like:
Perhaps this is causing the left-hand side of each bar to be rendered at the same place as the right hand side, somehow, leading to zero width bars. Maybe, during the corresponding winter->summer time change, we see double width bars instead. Unfortunately, looking at |
Beta Was this translation helpful? Give feedback.
-
+1 can confirm same issue |
Beta Was this translation helpful? Give feedback.
-
@wgmyers This is the case for me. Graphs are displayed normally again. |
Beta Was this translation helpful? Give feedback.
-
@eikeschott Same here. However, there is an upcoming DST change in US / Canada on Sunday November 7th :) Looking through chart.js issues, I found this, which may be relevant here: chartjs/Chart.js#6548 - essentially the chart.js folk don't touch TZ / DST stuff and leave it to your chosen date library (moment / luxon / etc). So the bug may be even further upstream :( |
Beta Was this translation helpful? Give feedback.
-
This seems to always happen around DST time changes. Would love if someone could figure it out. |
Beta Was this translation helpful? Give feedback.
-
Dug a bit more and found There's a Generally, the assumption is reasonably made that the locale of the first item in the data array is always the same as the last. This is (hopefully) true, but on DST change days, the call to Something clever that I don't entirely follow happens in I'm also unsure about the correct value of The question then becomes - how does chart.js handle a correctly formed data array for a 24 hour period including a DST change. But we know it misbehaves when such an array is simply sequential. Apologies that I am unable at the moment to go ahead and attempt to write a patch for this - if I can find time, I will try but hopefully someone else already set up for hacking on umami will find the above useful? On which note, there's an npm package called "chronokinesis" which I've used elsewhere to provide mock times for testing this kind of code, including around DST changes. |
Beta Was this translation helpful? Give feedback.
-
I believe the issue still persists, I even looked at Umami's live demo and It's the same as my instance. Both my Umami and DB instances are reporting the correct time/date for my timezone. EDIT: For some reason, I can see the bars now, the only change was that I restarted my machine, maybe it's related. |
Beta Was this translation helpful? Give feedback.
-
uhhh no idea if I'm running into the same thing, but today is the DST transition in the US and my hourly chart is weird: it loads, but animates from super-wide to invisibly narrow in under a second (^ that's the hourly chart which is broken. The daily chart seems fine) the chart bars seem correct, they just vanish I've attached screenshots from this animation if this is a twice-a-year issue for DST which is going away in some places anyway, I don't mean to steal dev attention -- just raising in case useful also happy to do work on this if it's helpful |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is related as this discussion is quite old, but I ran into the dashboard not working. If you run also run across this, it seemed an import of |
Beta Was this translation helpful? Give feedback.
-
In my local umami install (1.23.0), no data appears on any chart when set for 'today' or 'last 24 hours', despite there being a non-zero number of visits. All other time periods display as expected.
This occurs on both Firefox and Chrome in Linux, and on Firefox, Chrome and Edge in Windows.
The lines appear to start rendering but then fade to nothing.
Logging out and in again makes no difference, nor does force reload or close / restart browser.
Not sure how long this has been going on since I've not looked at this view in a while.
Beta Was this translation helpful? Give feedback.
All reactions