Would having the option of seeing yesterday's stats and graph be satisfactory? So far, having a rolling 24hr window is a little complicated in the backend.
The current backend shows you the log from midnight till now. For the upcoming FTL engine, we experimented with a rolling time frame of 24 hours, but, as @Mcat12 already pointed out, it makes the code considerably more complicated. However, in the current development edition of Pi-hole there is an option to show more than just today.
Is that going into the direction you are looking into?
You can try it out for yourself at any time, but be warned that the development version of Pi-hole changes on a daily basis and things may break and it is not always straightforward to fix things.
Thanks for the reply and glad to know you have a solution. I'll try the development version when I get time. But I am still looking forward to have it include in the stable version. Maybe a pull down switch on top of the graph for user to select "today(default)", "yesterday", "this week" ...?
No doubt, there will be a way into the stable version. But switching to the development version is something you can do to be on the edge of things. But again, first consider the warning. If you can wait, then it might be more safe to wait.
If you want to get into the development branch, update to the most recent version of Pi-hole (v2.13.2) and run
pihole checkout dev
that should be all you have to do. Run pihole -up from time to time to stay on the bleeding edge. Feel free to contact us if you find issues that are not already reported on GitHub.
You can blame your browser for this. It cached the old Javascript from the master branch instead of fetching the updated Javascripts. This issue is outside of our capabilities... Flushing the browser's cache or restarting the browser should usually be sufficient.