Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Grupo 2 - Distribución de los accidentes de Fuerzas Armadas a lo largo del tiempo (1910-2009)
<!doctype html>
<meta charset="utf-8">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id="exports"></div>
<script>
// sample data array
var trade_data = [
{"Numero de accidentes de FF.AA.": 20,"Decada": "Años:1910-1919"},
{"Numero de accidentes de FF.AA.": 6,"Decada": "Años:1920-1929"},
{"Numero de accidentes de FF.AA.": 5,"Decada": "Años:1930-1939"},
{"Numero de accidentes de FF.AA.": 138,"Decada": "Años:1940-1949"},
{"Numero de accidentes de FF.AA.": 94,"Decada": "Años:1950-1959"},
{"Numero de accidentes de FF.AA.": 125,"Decada": "Años:1960-1969"},
{"Numero de accidentes de FF.AA.": 93,"Decada": "Años:1970-1979"},
{"Numero de accidentes de FF.AA.": 117,"Decada": "Años:1980-1989"},
{"Numero de accidentes de FF.AA.": 107,"Decada": "Años:1990-1999"},
{"Numero de accidentes de FF.AA.": 76,"Decada": "Años:2000-2009"}
]
// instantiate d3plus
var visualization = d3plus.viz()
.container("#exports")
.data(trade_data)
.type("tree_map")
.id("Decada")
.size("Numero de accidentes de FF.AA.")
.labels({"align": "left", "valign": "top"})
.draw()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.