[Userscript] Wanikani Heatmap

Doesn’t look like it’s going to get resolved either. What timezone are you in?

Yeah.

My timezone’s standard name is “Middle East Standard Time”. Currently UTC+03:00 (DST active).

Now this renders the whole thing unusable. And the issue has been active since 2013, doesn’t look like it’ll be resolved anytime soon. But I love your extension so much that I’m considering forking that lib just to solve this :sweat_smile:

I wonder if it can be solved by just putting the data on a different hour of the day. Maybe if you try adding an hour or two to the heatmap data through the function I mentioned earlier?

Tried a couple of things, I don’t know what’s going on anymore.
Tried replacing all DST dates with a consistent offset, same problem occurred. The data still looks good, problem is definitely somewhere in the lib. Double checked the timestamps too, they all look good. I dunno.

Hm. I figured that since it seems to work for most of us it might be possible for me to patch it by just offsetting, as the time of day the data is on doesn’t matter much.

1 Like

With @MissMisc recent achievement of burning all wanikani review items, can we maybe add a special colour/icon/symbol for this?

1 Like

You mean the last day of review (when the last item is burned) should have a different colour?

Oh Woops! Wrong userscript :sweat_smile::sweat_smile::sweat_smile:

2 Likes

Hey @Kumirei

(Continuing from our previous conversation where the heatmap stopped showing colors from April 1st) I just noticed today the following:

So it appears it started working again from May 1st, today. No idea why it’s just April that’s not showing (keep in mind that April in 2018 is showing just fine). Anyway, maybe that will give you a hint, or maybe not :sweat_smile:

3 Likes

I know it’s been brought up a couple times, but it would be nice to set a start date. I bought a subscription back in 2014, finally used it for 2 days in Jan 2018, and am just now getting on the ball. I’d like to see an accurate count of reviews per day and % days studied.

If it’s not practical to add the manual override for start date to this script, could anyone recommend a userscript that does allow average reviews per day and % days studied since a particular date?

2 Likes

It’s something I’m planning to add this summer
It will be a while, as I’m rather busy this month, but you can expect it sometime in June, hopefully.

4 Likes

Oh yay! Thank you so much :pray: I look forward to it!

2 Likes

Hey, @Kumirei … I don’t know how, but it’s really cool…

All my scripts disappeared recently, and I have been reinstalling them this afternoon/evening… finally got around to this one and thought I’d have to find my colours again in a thread somewhere, or visually attempt it… BUT… It seems like somehow your script saved my settings!

It’s still pretty!

So thank you for your coding magic! Or @rfindley, for his coding magic in WKOF! (But I only just re-installed that today too… :thinking: )

Even my chosen intervals for lessons and reviews to change colours - it’s all there! It feels like ~magic~!

3 Likes

Settings are stored locally and removing the script doesn’t remove the settings, so it sounds like your localstorage survived :tada:

1 Like

Hooray!
Which is weird, because either updating Windows 10 last week (9-10 days ago), or the most recent Firefox update seems to be what wiped out all my scripts.

Neat script, but it seems to have some issues. See two different reports it gave me today, one from this morning when I first installed, the second from later today.

Note that the first seems to have missed all my reviews when I started May-July 2017.

Now that is showing up, but somehow second half of 2018 and first half of 2019 is missing.

While it’s nifty, if it can’t get the data right use seems limited.

If I’m not mistaken, the API v2 only keeps data about how many reviews you did each day since August 2017

1 Like

I don’t know if you noticed or if it’s relevant (the May-July 2017 reviews are missing either way) but the second screenshot is of the lessons rather than reviews.

1 Like

First screenshot is of reviews. As I mentioned in the OP Wanikani didn’t log review data since before August 4 of 2017, so any reviews before then will always be missing. The second screenshot is of your lesson heatmap. Presumably you didn’t do any lessons between July 2018 and April 2019, which seems reasonable to assume, as you only leveled up once in this span. You can toggle which of these (review or lesson) to show at any given time by clicking the Reviews or Lessons button to the right.

TL;DR: Everything seems to be working as it should

v.2.0.0
  • - Removed color labels/input for color setting (thanks @rfindley for implementing a new color picker)
    image

  • ~ Moved interval labels to beneath each heatmap so they will be more visible if you have a few years minimized
    image

  • + Added minimize tooltip. Some users have missed that you can click the year labels to minimize a certain year, so… yeah. Tooltips.
    sfsdfsdf

  • + Added minimize button. If you feel like the heatmaps are taking up a bit too much space, you can minimize them and just view the stats!

  • + Added fancy tooltips. Aren’t they pretty?
    sfsdfsdf sfsdfsdf

  • + Added burn count to tooltips. Now you can tell at a glance (a hover) how many items you burned that day! Or will have the chance to burn that day.
    sfsdfsdf sfsdfsdf

  • + Added percent total lessons tooltip. If you’re curious about how far along you are, you can simply hover the total lessons count and have a look!
    sfsdfsdf

  • + Added day of the week labels. Did you know that each row of the heatmaps correspond to a different day?
    image

  • + Added auto-ranging. Chooses the intervals for you in 20% increments of the most items you ever did in a day. Re-evaluates whenever you refresh the page.
    image

  • + Added start of day setting. If you tend to stay up late and want those hours after midnight to count towards the previous date, this is for you. Here setting it to 5 means that the new day starts 5 hours after midnight.
    image

  • + Added MANUAL START DATE, for those who fell off the wagon years ago and want to forget their shame.
    image

  • + Added forecasts. The future is now! Extends the review heatmap to display how many items are due and when.
    sfsdfsdf

  • + Added daily summaries. Just click the date you want the summary for and poof! there it is. For reviews this is a bit slow, as the reviews are fetched from WK on demand, but the forecast and for lessons we deal with cached data and it’s fast. Displays a summary of the day’s reviews and the items you reviewed.
    image

18 Likes