Usage Stats Visualizer
Description/What it does
This tool is meant to help people track metagame trends at the individual pokemon level based on ladder usage statistics. So if you want to see what's catching on or what threats the ladder is sleeping on, this is the tool for you.
Given specifications like generation, tier, level (thats the 0, 1500, 1630, 1825 marks), and a month range, the program grabs the relevant usage files from the smogon.com/stats directories, scanning them and getting the individual pokemon usage information. Then, given some pokemon that are in those lists, it plots the usage% data by month for the month range given. If a pokemon did not appear in those months (usually due to a ban or a rise to a higher tier), no dots are displayed (see Poliwrath in the picture above) to help distinguish between pokemon who just fell off in usage and pokemon who could not be used.
How to/Example
In the specifications section, select a generation, tier, level, and date range (Try Gen6 PU 1500 from 2015-01 to 2016-12) then click get data. The "Select Pokemon" tab should open, then once the data is loaded should display 3 entry fields. Type in any 3 PU pokemon for example "Machoke", "Throh", and "Gourgeist-Super", and click the Graph button. The graph should display in the place of [graph goes here].
Disclaimers
I formally apologize to anyone who has to look through that javascript code, I was learning it (and jquery) as I went along so there's probably a lot of garbage in there and copy/pasted nonsense code. I plan on going through and cleaning it up when I get time. That got done :D
Another thing is that the frontend/styling is minimal to make sure I could get it to actually work (I spent 2 days writing most of the code and then 2 more days rewriting it to be able to be deployed on heroku). Other known issues/pending improvements are in the issues section of the github repo.
Codebase
Python (flask) for retrieving the .txt data and processing it
JavaScript for responsiveness and dynamic-ness
HTML/CSS for being a pretty-looking website
Website: https://limitless-lowlands-81121.herokuapp.com/
Github repo: https://github.com/aturfah/smogon-usage-stats
Thank you in advance for any feedback/suggestions you may have.
Description/What it does
This tool is meant to help people track metagame trends at the individual pokemon level based on ladder usage statistics. So if you want to see what's catching on or what threats the ladder is sleeping on, this is the tool for you.
Given specifications like generation, tier, level (thats the 0, 1500, 1630, 1825 marks), and a month range, the program grabs the relevant usage files from the smogon.com/stats directories, scanning them and getting the individual pokemon usage information. Then, given some pokemon that are in those lists, it plots the usage% data by month for the month range given. If a pokemon did not appear in those months (usually due to a ban or a rise to a higher tier), no dots are displayed (see Poliwrath in the picture above) to help distinguish between pokemon who just fell off in usage and pokemon who could not be used.
How to/Example
In the specifications section, select a generation, tier, level, and date range (Try Gen6 PU 1500 from 2015-01 to 2016-12) then click get data. The "Select Pokemon" tab should open, then once the data is loaded should display 3 entry fields. Type in any 3 PU pokemon for example "Machoke", "Throh", and "Gourgeist-Super", and click the Graph button. The graph should display in the place of [graph goes here].
Disclaimers
Another thing is that the frontend/styling is minimal to make sure I could get it to actually work (I spent 2 days writing most of the code and then 2 more days rewriting it to be able to be deployed on heroku). Other known issues/pending improvements are in the issues section of the github repo.
Codebase
Python (flask) for retrieving the .txt data and processing it
JavaScript for responsiveness and dynamic-ness
HTML/CSS for being a pretty-looking website
Website: https://limitless-lowlands-81121.herokuapp.com/
Github repo: https://github.com/aturfah/smogon-usage-stats
Thank you in advance for any feedback/suggestions you may have.
Last edited: