[Userscript] Wanikani Heatmap

On Chrome then CTRL + SHIFT + J should bring up the console.

Just to make sure, you haven’t minimized it, have you? If you have it just looks like this

On my dashboard is nothing that looks like this :pensive:

Ok, and the console indeed says some angry red things at the top:

heatmap

Seems like the library (cal-heatmap) I am using for the heatmaps is being blocked. Maybe try whitelisting WK in your adblocker or have a look at your browser’s security settings?

I found the mistake! Indeed, I couldn’t access those link. I am using a VPN because I am in Japan right now, but want access to my country’s netflix selection :sweat_smile:
I disabled the VPN, and now the heatmap appears! I don’t know why this is a problem, but either the VPN connection or my country (Germany) aren’t compatible with your library.

Sorry for stealing your time! :raised_hands:

1 Like

No problem! Glad it worked out!

1 Like

So, I’ve got an issue with the Heatmap. My number of reviews per day is generally about the same, or at least, in a pretty narrow range. To make the script more informative, I set the intervals all within a fairly narrow band (currently 150, 200, 225, 250). But this makes the future planning entirely wiped out beyond maybe a day or two since at any time, I have a lot of apprentice items, so the number of (known) reviews drops quickly. It would be nice to see when above average review clumps from higher SRS levels are coming, though.

Is there any possible way to get the interval bands set independently for the two? Colors are already separated, so maybe…?

1 Like

At the moment, no. With the library I am using it only allows for one interval and to get the future stuff different colors I already have to use a lot of workarounds. However, I will be moving away from that library in the next major version, so I’ll include it as a setting then. If I forget to, just remind me then, it should be easy to add at that point.

3 Likes

That’s cool. I know how that can be. I’ll watch for the updates and bug you then. :wink:

1 Like

Hey @Kumirei, the more I look at my heatmap the more I love it. It’s got all the data I want to track that wkstats doesn’t already have. I’m using

image
etc.

But clicking on each day and copying into my table is tedious. (Actually it wouldn’t be that bad, but catching up on more than a year of not doing it every day is tedious.)

Could I suggest a feature request for the someday/maybe list? A data dump to csv function.

Bonus graphs follow

image


1 Like

Sure! Sounds like a neat feature. I think I could even generate csv files on demand if I look into it. Won’t be coming anytime soon, though.

3 Likes

IIRC it’s as easy as generating a text file, just make sure you get the syntax right :wink:

2 Likes

I just noticed that after resetting and adjusting the start date, the level up indicators from before remain visible. For example, I’m level 6 now and the review heat map will show a blank 2019 except the for level up indicators for level 7 and up.
The lesson heat map also still shows a vocab lesson that was removed from the site I think (if I click it, I get the “you’re quite the explorer” notice on the dashboard).
It’s no big deal, but can’t the script completely ignore everything from before the start date you set, just to have a little bit of a cleaner heat map? :slight_smile:

3 Likes

I must have overlooked something, then, because it’s supposed to ignore everything before the date. I don’t quite have the time to fix this right now, though, so it might be until summer confused

2 Likes

I’m also not bothered by it much, but the behaviour is a bit inconsistent. I have reset several times, the last time from 41 to 31, and before that from 31 to 21.

When I reset from 31 to 21, the lesson heat map of those levels became blank (only level-up markers), which I thought was logical because theoretically, I haven’t done those lessons since I’m now level 21 again. But when I reset from 41 to 31, the lesson heat map didn’t become blank.

The review heat map has never gone blank for me though (unless of course I didn’t do any reviews that day).

1 Like

I emptied my Local Storage and now the days between my resets are showing zero lessons. The more you learn :joy:

2 Likes

Did something break this script recently?

Somehow, it’s showing that I did almost 1,500 reviews 2 months and 2 days after starting WK. Also, before things got weird, the darkest/busiest part of my chart was in June 2018, as I was on the final stretch to 60 (because at this point, I was working through all the “fast” levels on top of all the reviews I had from going max pace the whole time). Now it’s showing that I… somehow had fewer reviews during this time than I did when I was only Level 10??

Also, it’s suddenly showing that my total reviews are over 1/4 million, which is cool, but last I checked it was something around ~160k, lol.

3 Likes

Looks like it. I assume this did something to confuse the script

Seems like the script fetches a bunch of extra reviews each times it loads. I’ll look into it tonight or tomorrow. For now you can reset it in the setting

8 Likes

@Kai_973 @Abstormal Should be fixed now if you update. The script will refetch all your reviews once then they will stay correct.

The problem turned out to be WK adding the new SRS system id to all reviews, causing them to update. I hadn’t considered that old review records would be updated, so the script saw these as new reviews.

4 Likes

Thanks! =D
I had an amazing 217.000 reviews there :rofl: (actual number is 121,804)
But since they didn’t log before after my first reset I’m not sure what my real number is anyway…
I have another lvl 1-20, and they started logging shortly after reset, so wasn’t lvl 1 either =P
I’m glad they went back as far as they did, but feel like something is missing, unable to see my first struggle and fall :rofl:

1 Like

I am missing my most consistent period ANIME%20NITRO%20EMOTE%20SERVER-1 I did 25 levels in the first half year, which is completely missing. The remaining 35 levels took me another 2 years…

4 Likes