Created
January 28, 2016 18:23
-
-
Save 201513139/fa88c6f9bb938807bc38 to your computer and use it in GitHub Desktop.
Ejercicio 2 Módulo 2
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Ejercicio 2 Módulo 2</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script> | |
d3.csv("Ministerio_de_Justicia_prevalencia_consumo_2014.csv", function(data) { | |
console.log(data); | |
}); | |
</script> | |
<svg width="700px" height="150px" style="border:solid 1px #000"> | |
<svg height="150" width="500"> | |
<ellipse cx="240" cy="100" rx="220" ry="30" style="fill:red" /> | |
<ellipse cx="220" cy="70" rx="190" ry="20" style="fill:royalblue" /> | |
<ellipse cx="210" cy="45" rx="170" ry="15" style="fill:yellow" /> | |
</svg> | |
<text x="200px" y="150px" font-size="50px">Sustancias Psicoactivas</text> | |
</svg> | |
<h1>Prevalencia del consumo de sustancias psicoactivas en Colombia durante el 2014 <em>usando D3</em>!</h1> | |
<h3>Observe la consola para encontrar los datos relacionados</h3> | |
<p>Este estudio fue realizado por el Gobierno Nacional de la República de Colombia, a través | |
del Ministerio de Justicia y del Derecho - Observatorio de Drogas de Colombia y el Ministerio | |
de Salud y Protección Social, con el apoyo de la Oficina de las Naciones Unidas contra la | |
Droga y el Delito - UNODC -, la Comisión Interamericana para el Control del Abuso de | |
Drogas - CICAD - de la Organización de los Estados Americanos - OEA -, y la Embajada de | |
los Estados Unidos en Colombia.</p> | |
<style> | |
body { | |
background-color: #666633 ; | |
} | |
</style> | |
</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
2014 / Zona | Tabaco | Alcohol | Marihuana | Cocaina | Heroina | Solventes | Dicloruro de Metileno | |
---|---|---|---|---|---|---|---|---|
AMAZONAS | 3.368225 | 34.595886 | 4.607375 | 1.543694 | 0 | 0.586294 | 0 | |
ANTIOQUIA | 10.886005 | 47.329022 | 10.972273 | 2.865957 | 0.497533 | 1.688591 | 3.101438 | |
ARAUCA | 9.659589 | 33.332181 | 3.152234 | 1.283603 | 0 | 0.611541 | 0.510675 | |
ATĹNTICO | 4.483909 | 29.018518 | 1.825309 | 0.883011 | 0.31862 | 0.938537 | 0.756662 | |
BOLIVAR | 4.324339 | 29.763488 | 0.722897 | 0.227371 | 0.174698 | 0.815112 | 0.473296 | |
BOYAĆ | 8.899044 | 45.568031 | 2.280498 | 0.562468 | 0.103671 | 0.449074 | 0.738644 | |
CALDAS | 13.161194 | 48.560935 | 9.367684 | 2.213916 | 0.272056 | 2.483416 | 6.618303 | |
CAQUET́ | 5.258466 | 35.946157 | 3.146492 | 1.738705 | 0.672907 | 1.430933 | 1.475463 | |
CASANARE | 10.860631 | 40.087089 | 5.803023 | 0.929377 | 0.302526 | 1.057512 | 0.679221 | |
CAUCA | 9.651576 | 37.525757 | 4.565298 | 2.440874 | 0.401895 | 1.728825 | 3.344411 | |
CESAR | 2.215778 | 28.569291 | 0.88226 | 0.606555 | 0.267613 | 1.355134 | 0.445079 | |
CHOĆ | 1.11567 | 35.041143 | 0.950165 | 0.559368 | 0.074387 | 0.88711 | 0.440722 | |
CUNDINAMARCA | 11.274501 | 39.605602 | 4.235895 | 1.307116 | 0.270919 | 1.937398 | 2.331162 | |
CORDOBA | 3.561432 | 31.090727 | 1.110081 | 0.561017 | 0.161526 | 0.732031 | 0.5151 | |
GUAINIA | 15.820945 | 32.846109 | 9.200233 | 0 | 0 | 5.502865 | 2.57952 | |
GUAVIARE | 5.211096 | 38.079643 | 6.115185 | 0.67105 | 0 | 2.441272 | 0 | |
HUILA | 6.295991 | 30.380248 | 3.007428 | 1.435014 | 0.231501 | 1.192325 | 0.205014 | |
LA GUAJIRA | 2.101756 | 25.250257 | 1.023136 | 0.859091 | 0.254014 | 0.9349 | 0.400238 | |
MAGDALENA | 2.397121 | 24.557839 | 1.065888 | 0.659297 | 0.320846 | 0.869464 | 0.630271 | |
META | 9.030802 | 40.21727 | 3.479971 | 1.753097 | 0.266753 | 2.041972 | 1.134396 | |
NARI��O | 9.526619 | 38.384587 | 3.854292 | 1.341494 | 0.363925 | 1.710447 | 3.721274 | |
N. DE SANTANDER | 5.809169 | 35.454611 | 2.121564 | 0.920551 | 0.225668 | 0.950168 | 0.754215 | |
PUTUMAYO | 3.339164 | 33.538348 | 3.433834 | 0.346706 | 0 | 1.858922 | 0.826327 | |
QUINDIO | 9.065514 | 40.104552 | 7.38585 | 2.987141 | 0.546914 | 2.584752 | 8.463486 | |
RISARALDA | 11.813305 | 47.349888 | 9.565185 | 2.094296 | 0.596595 | 2.403813 | 5.970987 | |
SAN ANDR��S | 1.7892 | 32.117081 | 2.356599 | 0.257978 | 0 | 0.571939 | 0.053714 | |
SANTANDER | 8.560805 | 34.269132 | 3.80208 | 1.624154 | 0.300148 | 1.52857 | 0.893388 | |
SUCRE | 3.542313 | 24.124245 | 1.284965 | 0.617117 | 0.468431 | 0.941755 | 0.877406 | |
TOLIMA | 8.949898 | 34.315058 | 4.455708 | 1.257947 | 0.251165 | 1.510184 | 3.143642 | |
VALLE DEL CAUCA | 8.763342 | 41.306396 | 4.535925 | 2.214872 | 0.396612 | 2.283987 | 1.449022 | |
VAUP��S | 10 | 31.818182 | 2.727273 | 0 | 0 | 0 | 0.909091 | |
VICHADA | 3.846154 | 28.205128 | 6.410256 | 1.282051 | 0 | 5.128205 | 1.282051 | |
BOGOT́ D.C. | 17.148419 | 48.020706 | 7.360256 | 2.994011 | 0.474522 | 3.01249 | 5.771064 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment