Last active
August 31, 2015 19:49
-
-
Save yrochat/a2b852f039a8f18189cb to your computer and use it in GitHub Desktop.
Public spending for education and in total in Switzerland
This file contains 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
Dépenses totales en milliers de francs | Dépenses totales en francs par habitant | Dépenses totales en francs par habitant | Dépenses d'éducation en milliers de francs | Dépenses d'éducation en francs par habitant | Dépenses d'éducation en francs par habitant | Pourcentage | ||
---|---|---|---|---|---|---|---|---|
Zurich | 21235238 | 58469 | 16505 | 6290164 | 15919 | 4466 | 29.6 | |
Berne | 14420559 | 49497 | 13887 | 3769395 | 13648 | 3797 | 26.1 | |
Lucerne | 4567436 | 36992 | 11602 | 1387554 | 11584 | 3594 | 30.4 | |
Uri | 488755 | 45597 | 13747 | 112840 | 10643 | 3161 | 23.1 | |
Schwyz | 1667038 | 37325 | 10976 | 436568 | 10032 | 2914 | 26.2 | |
Obwald | 460599 | 44071 | 13477 | 116891 | 10717 | 3237 | 25.4 | |
Nidwald | 452261 | 44270 | 12575 | 131104 | 11207 | 3153 | 29 | |
Glaris | 456347 | 38949 | 11853 | 125035 | 10584 | 3176 | 27.4 | |
Zoug | 1855086 | 56970 | 16110 | 480909 | 14730 | 4125 | 25.9 | |
Fribourg | 4064697 | 42766 | 13935 | 1356815 | 14340 | 4656 | 33.4 | |
Soleure | 2997019 | 38970 | 11324 | 832053 | 11153 | 3209 | 27.8 | |
Bâle-Ville | 4475423 | 86269 | 22515 | 1297380 | 26652 | 6922 | 29 | |
Bâle-Campagne | 3566178 | 49205 | 13397 | 1047099 | 14043 | 3786 | 29.4 | |
Schaffhouse | 1030454 | 44859 | 12837 | 242961 | 11023 | 3117 | 23.6 | |
Appenzell Rh.-E | 756738 | 42279 | 12627 | 172555 | 10987 | 3229 | 22.8 | |
Appenzell Rh.-I | 174186 | 32820 | 10953 | 53932 | 10418 | 3431 | 31 | |
Saint-Gall | 6146295 | 38328 | 12187 | 2077303 | 13576 | 4265 | 33.8 | |
Grisons | 3764105 | 65633 | 18879 | 689188 | 12492 | 3554 | 18.3 | |
Argovie | 6746019 | 35478 | 10573 | 2121318 | 11479 | 3381 | 31 | |
Thurgovie | 2942935 | 35695 | 11105 | 945969 | 12012 | 3692 | 32.1 | |
Tessin | 4643294 | 52094 | 13517 | 1062261 | 11951 | 3109 | 22.9 | |
Vaud | 12245821 | 48009 | 15071 | 3002226 | 13063 | 4088 | 24.5 | |
Valais | 5096447 | 46124 | 13931 | 991301 | 10290 | 3081 | 19.5 | |
Neuchâtel | 2819239 | 51079 | 15557 | 712857 | 13393 | 4084 | 25.3 | |
Genève | 11604503 | 75133 | 22810 | 2572855 | 18382 | 5556 | 22.2 | |
Jura | 1177731 | 52500 | 16212 | 259671 | 11942 | 3660 | 22 |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loading CSV Data with D3</title> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<svg width="960" height="500" /> | |
<script type="text/javascript"> | |
d3.csv("CH_public_spending.csv", function(data) { | |
console.log(data); | |
}); | |
for (i=0; i<50; i++) { | |
d3.selectAll("svg").append("circle").attr("cx", Math.random()*920+20).attr("cy", Math.random()*460+20).attr("r", Math.random()*100).attr("fill", '#'+Math.floor(Math.random()*16777215).toString(16)); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exercise for data journalism Mooc