This is a tool to visually explore the participation and performance of countries and athletes.
If you want to use this code, be cautious. As far as I can tell it is increadibly 'hacky.' I don't have much experience with JavaScript and definitely not with d3.js at this time; and it probably shows in the code.