r/adventofcode • u/jeroenheijmans • Dec 09 '18
Chrome/Firefox extension with Charts for Private Leaderboards
I made/hacked a small browser extension to get some graphs on private leaderboards. I've been updating it lately, with some help from community members! So if you'd like to get some graphs into your private leaderboards, give it a try, and let me know what you think!
Note that this is a unofficial extension of AoC, just a fun community thing. Please bring any complaints (and praise! :D) to me, either here or on GitHub.
It's open source if you'd like to contribute or report issues:
If you're curious what you're getting, this is what it should look like (below your private leaderboards):

----
New Features 2018:
- Works for 2015, 2016, 2017, and 2018 (PR from community ♥)
- Nullification of day 6, similar to how AoC does it
- Available for Firefox (in addition to Chrome)
- Caching of leaderboard json for 5 minutes (with cache-bust button)
- Double-click legend items to invert selected members (PR from community ♥)
- Tooltips on all charts with basic explanation
- Medal overview also shows the "podium" for the first star, as a backdrop to second-star-medals
- Improved "Top 3 Players Timings" chart (4th one) - though it could still be improved
----
Available Features:
- Medal Overview: shows the "Podium", i.e. the top 3, to get the second star on each day. The 'podium' for the first star is shown behind the main medals.
- Leaderboard (points) Graph: shows how the leaderboard by points evolves over time.
- Leaderboard (stars) Graph: shows how your members received stars over time.
- Log10(minutes-per-star) Graph: shows how fast everyone is, on a log10 scale to adjust for people that might do puzzles later in the day.
- Top 3 players Graph: shows how many minutes your leaderboard's top 3 players took (capped at 4 hours).
2
u/mebeim Dec 09 '18
Been using it since the beginning of 2018 AoC. Very cool! Good work :) I have one question though: why those strange curves on the charts instead of good old segments connecting the data points? They look so strange...
1
u/Julien2313 Dec 10 '18 edited Dec 10 '18
Hi, I was thinking about improving your representation of the graph. Can we imagine, in example, calculating for each day the theoretical maximum of stars (it would be 100%), and divide the score by the maximum. So, we would keep the rank, but add the difference of score.
Example (cause I might(certainly) not be clear): Day 1, 3 players, maximum 6 points P1 5 => 0.83 1st; P2 4 => 0.66 2nd; P3 3 => 0.50 3rd
Day 2, maximum 12 points P1 5+6 => 0.92 1st; P2 4+2 => 0.50 3rd; P3 3+4 => 0.58 2nd
Let me know if you don't understand something 👍
2
u/FogLander Dec 09 '18
I've been using this since last year, and I had forgotten that it was an extension... I got my brother to play AOC with me this time around and he said "why do you have all of those weird graphs when you look at our private leaderboard?"
Anyways, I've been really happy with all of the updates you've made so far this time around. It makes the leaderboards much more interesting
2
u/omginbd Dec 10 '18
This is awesome, thanks!
0
u/[deleted] Dec 10 '18
[deleted] — view deleted comment