StatKani - Data visualizations for WaniKani

That kind of “crack” in the bar typically indicates that a bar’s total height is higher than the box the graph is held in.

For instance, here’s my graph.

Level 8 on there only looks a bit bigger than level 7. However, level 7’s time is about 20 days, whereas level 8 is at 77 days, almost 4 times as long. (Actually longer, but while on level 8 I reset to level 8, so my reset day is counted as the start.)

Purely linear scaling on the graph would result in this kind of graph for larger differences:

Those are from items that you learnt which later got moved to a level above your current level during content modifications. WK doesn’t count those, and I’ll change StatKani to not count them either.

Yeah, the graphs seem to be broken for people who have done resets. If you’re comfortable doing so, you can send your API key to statkanibugs@gmail.com and I’ll fix it as soon as possible.

I just sent you my API, hope it helps!

Oho, stats. That’s interesting :eyes: I like the colors, they just… yeah! :ok_hand:

Level up chart and reviews heatmap

I don’t agree that this is 100% tho :joy: The completionist in me just disagrees:P

Thank you! I fixed the issue and your graph should work now :blush:

And I thought they said these were the fast levels…

out of curiosity, on the reviews graph, what is the ‘attendance %’ meaning?

also curious what the variation of coloring means? is that related to total number of reviews that day?

Attendance is the number of days you’ve shown up and done some reviews divided by the total number of days you’ve been on the platform.

Yep, the intensity of the blue is proportional to the number of reviews you did that day. (you can hover over to see the exact number)

Looks great! A couple of things I have always wanted (or wanted to be easier than going through all the work myself):

  • A crosstab feature where I can see review accuracy vs. time of day, accuracy vs. stage, etc
  • Earliest possible date/time of next level-up. (i.e., not projected by past average performace, but no really, if right now I pass every radical and kanji the hour the review comes up, when will I level up?) (this would actually be interesting enough to have as a plug-in script right on the WK front page)

リアクトがいいですね!:smiley:

Looks like you might want to back off the requests just a tad to avoid getting rate limited.

ah that explains why mine is 21%, i took a long break due to health issues and only recently restarted again.

Will do! I actually sent an email to the WK team asking them to expose the rate limit headers so I know when it’s good to retry API calls. They implemented my request a few days ago so I’ll be able to eliminate failed requests entirely :+1:

Let me know if you would like any help responding to everyone’s bug requests or anything! I am mostly a backend developer these days but I’ve worked on quite a bit of frontend at work as well.


My number of locked items isn’t showing up for some reason :c

It seems I neglected to add lessons to the locked item count. I just pushed a fix that should solve the problem. Good luck with with all of your 500+ lessons! :flushed:

All links send me to the graphs page (no dashboard), using safari and firefox.

Now that’s a curveball. I just tried Safari and Firefox and I was able to login and navigate around as expected. Do you mean the navigation bar links are not working, or can you not even login?

Something seems a little off on the heatmap around the new year, which is also throwing off the calculation of my current streak. The last day I didn’t do any reviews was Oct. 8, 2020, but it says my current streak is only 285 days. On the 2021 view, it says I did 0 reviews Jan. 1, and null reviews Dec. 29 to 31. On the 2020 view, it says I did null reviews Dec. 31 to Jan. 2, and 39 reviews Dec. 30 and 44 reviews Dec. 29. I actually did 43 on the 29th, 44 on the 30th, 39 on the 31st, 35 on the 1st and 26 on the 2nd.

Also, it says my longest streak is also 285 days, but it should actually be 368.

Do you unlock the reverse castle after getting to level 60? :eyes: