Skip to content

dposse/smashalytics

Repository files navigation

smashalytics

Demo: https://dposse.github.io/smashalytics/

Data gathering and visualization project using tournament results from Super Smash Brothers games.

Scrapes data from ssbwiki. Will write to csv and use d3.js for visualization.

bubbleChart and future d3 charts created to be reusable, handle data and chart configuration in main.js

Run http-server locally for D3.js, i.e. VSCode live server extension

TODO in order:
  • create helper function to read table row
  • get data from 2019 tournament table
  • write to csv
  • break down how to get bracket data
  • import csv to d3.js
  • basic data visualization
    • basic d3 force layout
    • modify force layout
    • add margin convention
    • add tooltips
      • tooltip animation on mouseover/mouseout
      • style tooltip
    • center chart on page
    • keep nodes within borders - not worrying about this, simulation keeps nodes inside window
    • make nodes draggable
  • fix scraper.js - incorrectly reads entrants >1000 because of comma
  • clean scraper console output
  • change d3 force layout to accommodate the larger nodes
  • release alpha version - heroku? github pages works
  • set node color based on winner
  • get to bracket data pages
    • load pages scraped from tournament table (tournament.url)
    • find super smash bros ultimate id (h3 tag?)
    • find bracket link after id
    • check if link is smash.gg, challonge
    • load bracket link
  • figure out how to get bracket data
    • for smash.gg
    • for challonge.com
    • other sites if they show up - maybe throw flag
  • write bracket data to csv database
  • add accessibility
  • expand data visualization
    • fix tooltip - while chart is loading/expanding there is no mouseover/mouseout transition animation
  • automate tournamentData.csv and bracketData.csv being updated by scrapeTournamentData.js and scrapeMatchData.js
  • use massey method to rank players / make predictions
  • ML predictions based on match history?
  • map each winner to unique color - currently there are overlaps

visualization ideas

  • player circle/icon/something, bigger the more wins they have
  • going to a player's stats - show individual win percentages against other players
  • calculate node radius instead of entrants/7 - scale when adding tournaments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published