Last active
December 31, 2015 02:29
-
-
Save jqtrde/7921065 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
team | tsr90 | tsr100 | tsr110 | tsr120 | tsr140 | qcp90 | qcp100 | qcp110 | qcp120 | qcp140 | qcptsr90 | qcptsr100 | qcptsr110 | qcptsr120 | qcptsr140 | sh90 | sh100 | sh110 | sh120 | sh140 | sv90 | sv100 | sv110 | sv120 | sv140 | pdo90 | pdo100 | pdo110 | pdo120 | pdo140 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arsenal | 0.538 | 0.537 | 0.537 | 0.541 | 0.561 | 0.47 | 0.476 | 0.487 | 0.492 | 0.472 | 0.505 | 0.511 | 0.523 | 0.532 | 0.53 | 34.5 | 33.8 | 32.8 | 33.8 | 34.5 | 77.5 | 79.5 | 78.3 | 80 | 82.1 | 1120 | 1134 | 1111 | 1138 | 1167 | |
aston villa | 0.47 | 0.46 | 0.477 | 0.485 | 0.478 | 0.549 | 0.541 | 0.526 | 0.527 | 0.518 | 0.516 | 0.497 | 0.502 | 0.511 | 0.495 | 31 | 29 | 29.7 | 29.5 | 31.4 | 67.6 | 70.7 | 72.1 | 70.2 | 71.9 | 986 | 998 | 1018 | 998 | 1033 | |
cardiff city | 0.347 | 0.353 | 0.353 | 0.368 | 0.37 | 0.495 | 0.504 | 0.498 | 0.504 | 0.505 | 0.343 | 0.356 | 0.352 | 0.371 | 0.373 | 33.3 | 33.3 | 31 | 33.3 | 27.5 | 78.7 | 79.7 | 78.6 | 77.3 | 75.9 | 1120 | 1130 | 1096 | 1107 | 1034 | |
chelsea | 0.631 | 0.612 | 0.604 | 0.613 | 0.627 | 0.491 | 0.499 | 0.498 | 0.499 | 0.496 | 0.619 | 0.611 | 0.602 | 0.611 | 0.622 | 30.8 | 29.6 | 29.5 | 30.4 | 34.6 | 80.6 | 79.5 | 76.2 | 76.7 | 70.2 | 1114 | 1091 | 1057 | 1072 | 1048 | |
crystal palace | 0.429 | 0.441 | 0.437 | 0.44 | 0.45 | 0.501 | 0.501 | 0.504 | 0.496 | 0.489 | 0.431 | 0.442 | 0.44 | 0.437 | 0.44 | 23.1 | 20 | 18.8 | 20.6 | 19 | 58.7 | 58 | 59.6 | 61.1 | 62.7 | 818 | 780 | 784 | 817 | 818 | |
everton | 0.535 | 0.52 | 0.528 | 0.543 | 0.554 | 0.499 | 0.515 | 0.509 | 0.515 | 0.512 | 0.534 | 0.535 | 0.537 | 0.56 | 0.568 | 29.8 | 29.2 | 28 | 27.4 | 28.2 | 65.5 | 71.4 | 73 | 69 | 74.5 | 953 | 1006 | 1010 | 965 | 1027 | |
fulham | 0.3 | 0.327 | 0.304 | 0.309 | 0.316 | 0.461 | 0.471 | 0.47 | 0.478 | 0.489 | 0.277 | 0.308 | 0.286 | 0.295 | 0.309 | 33.3 | 30.3 | 29.4 | 29.7 | 27.9 | 76.9 | 73.2 | 71.2 | 70.4 | 70.5 | 1103 | 1035 | 1006 | 1002 | 984 | |
hull city | 0.386 | 0.419 | 0.411 | 0.416 | 0.414 | 0.499 | 0.507 | 0.513 | 0.508 | 0.516 | 0.385 | 0.425 | 0.422 | 0.423 | 0.427 | 26.9 | 28.6 | 30 | 28.1 | 31.6 | 76.2 | 76.7 | 72 | 71.2 | 71.4 | 1031 | 1053 | 1020 | 993 | 1030 | |
liverpool | 0.542 | 0.536 | 0.571 | 0.549 | 0.548 | 0.514 | 0.508 | 0.484 | 0.49 | 0.479 | 0.557 | 0.544 | 0.553 | 0.539 | 0.524 | 30.9 | 28.8 | 30.4 | 32.4 | 33.3 | 81 | 79.6 | 80 | 79 | 76.1 | 1119 | 1084 | 1104 | 1115 | 1094 | |
man city | 0.611 | 0.633 | 0.648 | 0.654 | 0.637 | 0.505 | 0.498 | 0.487 | 0.506 | 0.505 | 0.617 | 0.631 | 0.631 | 0.662 | 0.644 | 36.2 | 41.2 | 38.9 | 38.8 | 42.6 | 62.1 | 63.3 | 62.5 | 63.6 | 66.7 | 983 | 1045 | 1014 | 1024 | 1092 | |
man united | 0.545 | 0.534 | 0.53 | 0.527 | 0.525 | 0.535 | 0.508 | 0.51 | 0.496 | 0.51 | 0.583 | 0.542 | 0.541 | 0.523 | 0.535 | 29.8 | 33.3 | 34 | 34.5 | 32.8 | 68.4 | 70.5 | 71.7 | 70 | 69 | 982 | 1038 | 1057 | 1045 | 1018 | |
newcastle | 0.561 | 0.562 | 0.52 | 0.531 | 0.528 | 0.461 | 0.485 | 0.499 | 0.494 | 0.496 | 0.516 | 0.545 | 0.519 | 0.525 | 0.523 | 27.3 | 26.9 | 26.8 | 27.9 | 26.8 | 60 | 61.9 | 71.4 | 70.7 | 67.2 | 873 | 888 | 982 | 986 | 939 | |
norwich | 0.454 | 0.428 | 0.449 | 0.44 | 0.438 | 0.505 | 0.515 | 0.519 | 0.522 | 0.521 | 0.459 | 0.441 | 0.467 | 0.46 | 0.456 | 17.1 | 16.7 | 21.4 | 22.7 | 23.1 | 71.1 | 63.6 | 64.4 | 64.1 | 64.6 | 883 | 803 | 858 | 868 | 876 | |
southampton | 0.58 | 0.575 | 0.583 | 0.571 | 0.563 | 0.477 | 0.472 | 0.466 | 0.47 | 0.483 | 0.553 | 0.543 | 0.544 | 0.537 | 0.543 | 22.7 | 23.9 | 28.3 | 26.3 | 26.9 | 88.5 | 86.2 | 83.9 | 80 | 71.1 | 1112 | 1101 | 1122 | 1063 | 980 | |
stoke | 0.451 | 0.453 | 0.444 | 0.462 | 0.454 | 0.483 | 0.495 | 0.502 | 0.49 | 0.485 | 0.436 | 0.448 | 0.446 | 0.453 | 0.44 | 18.8 | 20 | 26.3 | 27.9 | 25 | 77.3 | 76.1 | 73.1 | 74.5 | 74.3 | 960 | 961 | 994 | 1025 | 993 | |
sunderland | 0.438 | 0.427 | 0.406 | 0.401 | 0.39 | 0.497 | 0.489 | 0.499 | 0.495 | 0.501 | 0.436 | 0.418 | 0.406 | 0.397 | 0.391 | 30.4 | 29.2 | 30.8 | 27.6 | 33.3 | 54.3 | 54.2 | 57.7 | 57.9 | 57.6 | 848 | 833 | 885 | 855 | 909 | |
swansea | 0.532 | 0.533 | 0.542 | 0.549 | 0.529 | 0.532 | 0.509 | 0.506 | 0.483 | 0.498 | 0.566 | 0.542 | 0.548 | 0.531 | 0.527 | 23.1 | 21.8 | 24.6 | 25.8 | 26.7 | 68.6 | 68.4 | 63.4 | 63.6 | 64.8 | 916 | 902 | 880 | 894 | 915 | |
tottenham | 0.641 | 0.643 | 0.66 | 0.641 | 0.625 | 0.505 | 0.496 | 0.503 | 0.52 | 0.505 | 0.647 | 0.637 | 0.664 | 0.667 | 0.631 | 16.7 | 15 | 12.2 | 11.4 | 14.8 | 83.3 | 83.9 | 82.9 | 73.3 | 72.2 | 1000 | 989 | 950 | 847 | 870 | |
west brom | 0.497 | 0.492 | 0.491 | 0.485 | 0.476 | 0.495 | 0.487 | 0.498 | 0.5 | 0.511 | 0.492 | 0.479 | 0.489 | 0.485 | 0.487 | 27.6 | 30.3 | 33.3 | 35 | 40.5 | 73.7 | 76.2 | 75.5 | 75 | 72.1 | 1013 | 1065 | 1088 | 1100 | 1125 | |
west ham | 0.489 | 0.503 | 0.486 | 0.47 | 0.5 | 0.517 | 0.517 | 0.511 | 0.523 | 0.499 | 0.505 | 0.52 | 0.497 | 0.492 | 0.499 | 30.8 | 26.7 | 26.5 | 25.7 | 24.5 | 78.4 | 79.5 | 75.6 | 73.6 | 74.1 | 1091 | 1062 | 1020 | 993 | 986 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>2013-2014 EPL statistics</title> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type='text/javascript'> | |
var width = 500, | |
height = 500; | |
var x = d3.scale.ordinal() | |
.rangeRoundBands([0, width], 0.1); | |
var y = d3.scale.linear() | |
.range([height, 0]); | |
var chart = d3.select('.chart') | |
.attr('width', width) | |
.attr('height', height); | |
d3.csv('epl-data.csv', function(error, data) { | |
x.domain(data.map(function(d) { return d.team; })); | |
y.domain([0, d3.max(data, function(d) { return d.value; })]); | |
data.forEach(function(d) { | |
d.team = d.team; | |
d.tsr90 = +d.tsr90; | |
}); | |
var bar = chart.selectAll('g') | |
.data(data) | |
.enter().append('g') | |
.attr('transform', function(d) { return 'translate(' + x(d.team) + ',0)'; }); | |
bar.append('rect') | |
.attr('y', function(d) { return y(d.tsr90); }) | |
.attr('height', function(d) { return height - y(d.tsr90); }) | |
.attr('width', x.rangeBand()); | |
}); | |
</script> | |
<div class='chart'></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment