Skip to content

Instantly share code, notes, and snippets.

@nepomunich
Created March 31, 2015 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nepomunich/441c78caab5a9106f706 to your computer and use it in GitHub Desktop.
Save nepomunich/441c78caab5a9106f706 to your computer and use it in GitHub Desktop.
1860 soccer homeground stats
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
</head>
<body>
<p>Not much to see here; try looking in the console!</p>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("stadien_prozent.csv", function(data) {
//Now CSV contents have been transformed into
//an array of JSON objects.
//Log 'data' to the console, for verification.
console.log(data);
});
</script>
</body>
</html>
SUM von Wins SUM von Ties SUM von Defeats total matches percentage of wins percentage of ties percentage of defeats
Allianz Arena 70 48 48 166 42,17% 28,92% 28,92%
Grünwalder 262 104 62 428 61,21% 24,30% 14,49%
Olympiastadion 150 65 74 289 51,90% 22,49% 25,61%
Gesamt 482 217 184 883 54,59% 24,58% 20,84%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment