Quote (njaguar @ Apr 27 2016 01:20am)
Right, the script could easily just store and cache a month in a localStorage or IndexedDB, then use that to display more than the current month's data. It would still require you to manually go back through each month, at least once (to build your local cache), but yeah, it's possible to do it.
I took your advice and did exactly that using localStorage. Since localStorage can only pass strings, I had to use JSON.stringify/parse to be able to pass the gold value/date array, which introduced a new issue with decoding JSON dates (see
http://weblog.west-wind.com/posts/2014/Jan/06/JavaScript-JSON-Date-Parsing-and-real-Dates ) so what I did instead is rewrite it to keep using unix time and only convert that to real dates at the last second. I also had to reset the localstorage manually every time I wanted to test something but that's merely an inconvenience

Anyway, here's the slightly cleaner code for version 2:
http://pastebin.com/YyPjMB51And the JSFiddle to try it out:
https://jsfiddle.net/m7vgwz19/It seems to work on my end for March and April now, unfortunately I've only got two months' worth of gold logs to test it with so I'm not 100% confident it works with more, but it should. Would love it if someone could try it out and report back.
And thanks for your support everyone! I really appreciate it.
This post was edited by annexusquam on Apr 26 2016 08:45pm