Last active
August 29, 2015 14:17
-
-
Save mikelmadina/df47626716b4b11d7b21 to your computer and use it in GitHub Desktop.
D3js visualizations course module 2 exercise
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>Module 2 exercise - Mikel Madina</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
</head> | |
<body> | |
<svg width="300" height="300"> | |
<circle cx="150" cy="150" r="140" fill="yellow" /> | |
<circle cx="100" cy="100" r="10" fill="black" /> | |
<circle cx="200" cy="100" r="10" fill="black" /> | |
<path d="M75,175 A20,20 0 0,0 225,175 z" | |
style="stroke: black; stroke-width:3px; fill:white;"/> | |
</svg> | |
<p>Not much to see here; try looking in the console!</p> | |
<script type="text/javascript"> | |
//Load in contents of CSV file | |
d3.csv("pobreziaetabazterketaarriskukopertsonak2012-2013.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> |
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
UDALKOD | UDALA | BIZTANLEAK | EMAKUMEAK-ostatu | LAGUNAK-ostatu | EMAKUMEAK-zentroak | LAGUNAK-zentroak | LAGUNAK-agi | EMAKUMEAK-agi | PARAM-URTEA | |
---|---|---|---|---|---|---|---|---|---|---|
1 | ABALTZISKETA | 304 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
2 | ADUNA | 370 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
16 | AIA | 1829 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
3 | AIZARNAZABAL | 638 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
4 | ALBIZTUR | 302 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
5 | ALEGIA | 1687 | 0 | 6 | 0 | 0 | 2 | 0 | 2012 | |
6 | ALKIZA | 322 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
87 | ALTZAGA | 156 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
7 | ALTZO | 379 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
8 | AMEZKETA | 954 | 0 | 0 | 0 | 0 | 1 | 1 | 2012 | |
9 | ANDOAIN | 14215 | 0 | 12 | 0 | 0 | 5 | 0 | 2012 | |
10 | ANOETA | 1787 | 0 | 0 | 0 | 0 | 1 | 0 | 2012 | |
11 | ANTZUOLA | 2121 | 0 | 0 | 0 | 0 | 1 | 0 | 2012 | |
12 | ARAMA | 184 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
13 | ARETXABALETA | 6559 | 0 | 0 | 0 | 0 | 2 | 0 | 2012 | |
55 | ARRASATE | 22116 | 0 | 0 | 0 | 0 | 26 | 4 | 2012 | |
14 | ASTEASU | 1456 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
84 | ASTIGARRAGA | 4386 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
15 | ATAUN | 1599 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
17 | AZKOITIA | 10787 | 0 | 0 | 0 | 0 | 24 | 2 | 2012 | |
18 | AZPEITIA | 14054 | 0 | 0 | 0 | 0 | 12 | 3 | 2012 | |
85 | BALIARRAIN | 91 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
19 | BEASAIN | 12932 | 0 | 7 | 0 | 0 | 5 | 2 | 2012 | |
20 | BEIZAMA | 182 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
21 | BELAUNTZA | 306 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
22 | BERASTEGI | 1003 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
74 | BERGARA | 14823 | 0 | 0 | 0 | 0 | 12 | 3 | 2012 | |
23 | BERROBI | 587 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
24 | BIDANIA-GOIATZ | 483 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
29 | DEBA | 5367 | 0 | 0 | 0 | 0 | 1 | 1 | 2012 | |
69 | DONOSTIA | 183090 | 114 | 447 | 2 | 14 | 69 | 35 | 2012 | |
30 | EIBAR | 27404 | 0 | 0 | 0 | 0 | 20 | 6 | 2012 | |
31 | ELDUAIN | 227 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
33 | ELGETA | 1051 | 0 | 0 | 0 | 0 | 1 | 0 | 2012 | |
32 | ELGOIBAR | 10893 | 0 | 0 | 0 | 0 | 10 | 5 | 2012 | |
67 | ERRENTERIA | 38336 | 13 | 32 | 0 | 0 | 13 | 4 | 2012 | |
66 | ERREZIL | 633 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
34 | ESKORIATZA | 3958 | 0 | 0 | 0 | 0 | 1 | 0 | 2012 | |
35 | EZKIO-ITSASO | 570 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
38 | GABIRIA | 434 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
37 | GAINTZA | 136 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
88 | GAZTELU | 170 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
39 | GETARIA | 2527 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
40 | HERNANI | 19119 | 14 | 114 | 0 | 0 | 4 | 2 | 2012 | |
41 | HERNIALDE | 334 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
36 | HONDARRIBIA | 16226 | 0 | 0 | 0 | 0 | 3 | 3 | 2012 | |
42 | IBARRA | 4273 | 0 | 0 | 0 | 0 | 2 | 0 | 2012 | |
43 | IDIAZABAL | 2187 | 0 | 0 | 0 | 0 | 1 | 0 | 2012 | |
44 | IKAZTEGIETA | 455 | 0 | 0 | 0 | 0 | 1 | 0 | 2012 | |
45 | IRUN | 60416 | 0 | 23 | 0 | 0 | 13 | 6 | 2012 | |
46 | IRURA | 1270 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
47 | ITSASONDO | 610 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
48 | LARRAUL | 208 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
83 | LASARTE-ORIA | 17592 | 0 | 0 | 0 | 0 | 9 | 3 | 2012 | |
49 | LAZKAO | 5203 | 0 | 0 | 0 | 0 | 5 | 1 | 2012 | |
50 | LEABURU | 384 | 0 | 0 | 0 | 0 | 1 | 1 | 2012 | |
51 | LEGAZPI | 8621 | 0 | 0 | 0 | 0 | 6 | 1 | 2012 | |
52 | LEGORRETA | 1439 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
68 | LEINTZ-GATZAGA | 250 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
53 | LEZO | 5966 | 0 | 0 | 0 | 0 | 2 | 0 | 2012 | |
54 | LIZARTZA | 610 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
82 | MENDARO | 1720 | 0 | 0 | 0 | 0 | 1 | 0 | 2012 | |
57 | MUTILOA | 218 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
56 | MUTRIKU | 4913 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
63 | OIARTZUN | 9806 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
58 | OLABERRIA | 936 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
59 | OÑATI | 10756 | 0 | 0 | 0 | 0 | 4 | 0 | 2012 | |
76 | ORDIZIA | 9339 | 0 | 0 | 0 | 0 | 4 | 1 | 2012 | |
86 | ORENDAIN | 175 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
60 | OREXA | 115 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
61 | ORIO | 4839 | 0 | 0 | 0 | 0 | 2 | 1 | 2012 | |
62 | ORMAIZTEGI | 1301 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
64 | PASAIA | 16091 | 34 | 161 | 0 | 0 | 13 | 4 | 2012 | |
70 | SEGURA | 1319 | 0 | 0 | 0 | 0 | 2 | 0 | 2012 | |
65 | SORALUZE | 4062 | 0 | 0 | 0 | 0 | 14 | 5 | 2012 | |
71 | TOLOSA | 17888 | 0 | 16 | 0 | 0 | 14 | 6 | 2012 | |
72 | URNIETA | 5998 | 2 | 12 | 0 | 0 | 4 | 0 | 2012 | |
77 | URRETXU | 6761 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
73 | USURBIL | 5718 | 0 | 0 | 0 | 0 | 2 | 1 | 2012 | |
75 | VILLABONA | 5750 | 6 | 10 | 0 | 0 | 7 | 4 | 2012 | |
78 | ZALDIBIA | 1463 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
79 | ZARAUTZ | 22315 | 0 | 0 | 0 | 0 | 4 | 3 | 2012 | |
25 | ZEGAMA | 1407 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
26 | ZERAIN | 248 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
27 | ZESTOA | 3410 | 0 | 0 | 0 | 0 | 4 | 1 | 2012 | |
28 | ZIZURKIL | 2790 | 8 | 19 | 0 | 0 | 5 | 3 | 2012 | |
81 | ZUMAIA | 8976 | 0 | 0 | 0 | 0 | 0 | 0 | 2012 | |
80 | ZUMARRAGA | 10059 | 0 | 0 | 0 | 0 | 3 | 0 | 2012 | |
1 | ABALTZISKETA | 304 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
2 | ADUNA | 370 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
16 | AIA | 1829 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
3 | AIZARNAZABAL | 638 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
4 | ALBIZTUR | 302 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
5 | ALEGIA | 1687 | 0 | 11 | 0 | 0 | 7 | 2 | 2013 | |
6 | ALKIZA | 322 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
87 | ALTZAGA | 156 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
7 | ALTZO | 379 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
8 | AMEZKETA | 954 | 0 | 0 | 0 | 0 | 1 | 1 | 2013 | |
9 | ANDOAIN | 14215 | 0 | 17 | 0 | 0 | 16 | 3 | 2013 | |
10 | ANOETA | 1787 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
11 | ANTZUOLA | 2121 | 0 | 0 | 0 | 0 | 6 | 0 | 2013 | |
12 | ARAMA | 184 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
13 | ARETXABALETA | 6559 | 0 | 0 | 0 | 0 | 10 | 3 | 2013 | |
55 | ARRASATE | 22116 | 0 | 0 | 0 | 0 | 104 | 20 | 2013 | |
14 | ASTEASU | 1456 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
84 | ASTIGARRAGA | 4386 | 0 | 0 | 0 | 0 | 25 | 15 | 2013 | |
15 | ATAUN | 1599 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
17 | AZKOITIA | 10787 | 0 | 0 | 0 | 0 | 49 | 5 | 2013 | |
18 | AZPEITIA | 14054 | 0 | 0 | 0 | 0 | 31 | 6 | 2013 | |
85 | BALIARRAIN | 91 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
19 | BEASAIN | 12932 | 0 | 14 | 0 | 0 | 30 | 4 | 2013 | |
20 | BEIZAMA | 182 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
21 | BELAUNTZA | 306 | 0 | 0 | 0 | 0 | 2 | 0 | 2013 | |
22 | BERASTEGI | 1003 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
74 | BERGARA | 14823 | 0 | 0 | 0 | 0 | 51 | 15 | 2013 | |
23 | BERROBI | 587 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
24 | BIDANIA-GOIATZ | 483 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
29 | DEBA | 5367 | 0 | 0 | 0 | 0 | 2 | 2 | 2013 | |
69 | DONOSTIA | 183090 | 108 | 441 | 10 | 146 | 182 | 80 | 2013 | |
30 | EIBAR | 27404 | 0 | 0 | 0 | 0 | 94 | 32 | 2013 | |
31 | ELDUAIN | 227 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
33 | ELGETA | 1051 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
32 | ELGOIBAR | 10893 | 0 | 0 | 4 | 9 | 23 | 3 | 2013 | |
67 | ERRENTERIA | 38336 | 10 | 34 | 9 | 39 | 41 | 13 | 2013 | |
66 | ERREZIL | 633 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
34 | ESKORIATZA | 3958 | 0 | 0 | 0 | 0 | 7 | 0 | 2013 | |
35 | EZKIO-ITSASO | 570 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
38 | GABIRIA | 434 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
37 | GAINTZA | 136 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
88 | GAZTELU | 170 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
39 | GETARIA | 2527 | 0 | 0 | 0 | 0 | 2 | 1 | 2013 | |
40 | HERNANI | 19119 | 16 | 116 | 2 | 82 | 23 | 7 | 2013 | |
41 | HERNIALDE | 334 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
36 | HONDARRIBIA | 16226 | 0 | 0 | 0 | 0 | 7 | 3 | 2013 | |
42 | IBARRA | 4273 | 0 | 0 | 0 | 0 | 10 | 3 | 2013 | |
43 | IDIAZABAL | 2187 | 0 | 0 | 0 | 0 | 2 | 0 | 2013 | |
44 | IKAZTEGIETA | 455 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
45 | IRUN | 60416 | 0 | 22 | 0 | 0 | 53 | 22 | 2013 | |
46 | IRURA | 1270 | 0 | 0 | 0 | 0 | 3 | 2 | 2013 | |
47 | ITSASONDO | 610 | 0 | 0 | 0 | 0 | 4 | 1 | 2013 | |
48 | LARRAUL | 208 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
83 | LASARTE-ORIA | 17592 | 0 | 0 | 0 | 0 | 10 | 4 | 2013 | |
49 | LAZKAO | 5203 | 0 | 0 | 0 | 0 | 8 | 4 | 2013 | |
50 | LEABURU | 384 | 0 | 0 | 0 | 0 | 2 | 1 | 2013 | |
51 | LEGAZPI | 8621 | 0 | 0 | 0 | 0 | 7 | 0 | 2013 | |
52 | LEGORRETA | 1439 | 0 | 0 | 0 | 0 | 1 | 0 | 2013 | |
68 | LEINTZ-GATZAGA | 250 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
53 | LEZO | 5966 | 0 | 0 | 0 | 0 | 3 | 2 | 2013 | |
54 | LIZARTZA | 610 | 0 | 0 | 0 | 0 | 2 | 1 | 2013 | |
82 | MENDARO | 1720 | 0 | 0 | 0 | 0 | 2 | 1 | 2013 | |
57 | MUTILOA | 218 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
56 | MUTRIKU | 4913 | 0 | 0 | 0 | 0 | 4 | 0 | 2013 | |
63 | OIARTZUN | 9806 | 0 | 0 | 0 | 0 | 3 | 2 | 2013 | |
58 | OLABERRIA | 936 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
59 | OÑATI | 10756 | 0 | 0 | 0 | 0 | 7 | 3 | 2013 | |
76 | ORDIZIA | 9339 | 0 | 0 | 0 | 0 | 41 | 2 | 2013 | |
86 | ORENDAIN | 175 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
60 | OREXA | 115 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
61 | ORIO | 4839 | 0 | 0 | 0 | 0 | 9 | 2 | 2013 | |
62 | ORMAIZTEGI | 1301 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
64 | PASAIA | 16091 | 22 | 140 | 0 | 0 | 23 | 8 | 2013 | |
70 | SEGURA | 1319 | 0 | 0 | 0 | 0 | 3 | 0 | 2013 | |
65 | SORALUZE | 4062 | 0 | 0 | 0 | 0 | 33 | 7 | 2013 | |
71 | TOLOSA | 17888 | 0 | 16 | 0 | 9 | 21 | 11 | 2013 | |
72 | URNIETA | 5998 | 2 | 11 | 0 | 0 | 2 | 1 | 2013 | |
77 | URRETXU | 6761 | 0 | 0 | 0 | 0 | 5 | 3 | 2013 | |
73 | USURBIL | 5718 | 0 | 0 | 0 | 0 | 2 | 1 | 2013 | |
75 | VILLABONA | 5750 | 9 | 13 | 0 | 0 | 10 | 3 | 2013 | |
78 | ZALDIBIA | 1463 | 0 | 0 | 0 | 0 | 2 | 0 | 2013 | |
79 | ZARAUTZ | 22315 | 0 | 0 | 0 | 0 | 5 | 4 | 2013 | |
25 | ZEGAMA | 1407 | 0 | 0 | 0 | 0 | 1 | 1 | 2013 | |
26 | ZERAIN | 248 | 0 | 0 | 0 | 0 | 0 | 0 | 2013 | |
27 | ZESTOA | 3410 | 0 | 0 | 0 | 0 | 12 | 2 | 2013 | |
28 | ZIZURKIL | 2790 | 7 | 16 | 0 | 0 | 8 | 5 | 2013 | |
81 | ZUMAIA | 8976 | 0 | 0 | 0 | 0 | 3 | 3 | 2013 | |
80 | ZUMARRAGA | 10059 | 0 | 0 | 0 | 0 | 10 | 2 | 2013 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment