Skip to content

Instantly share code, notes, and snippets.

@pachamaltese pachamaltese/index.html
Last active Dec 24, 2016

Embed
What would you like to do?
Grupo 3 - Clasificación Internacional de Situación en el Empleo Abreviada según Sexo
<!doctype html>
<meta charset="utf-8">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id="viz"></div>
<script>
var datos_empleo =[
{
"Sexo": "Hombre","color": "#000080",
"CISE Abreviada": "Empleador(a) o cuenta propia",
"wgt2": 991622.3944
},
{
"Sexo": "Hombre","color": "#000080",
"CISE Abreviada": "Asalariada(o) sector privado",
"wgt2": 2729846.0418
},
{
"Sexo": "Hombre","color": "#000080",
"CISE Abreviada": "Asalariada(o) sector público",
"wgt2": 459261.2843
},
{
"Sexo": "Hombre","color": "#000080",
"CISE Abreviada": "Personal del servicio doméstico pagado",
"wgt2": 38673.9493
},
{
"Sexo": "Hombre","color": "#000080",
"CISE Abreviada": "Familiar o personal no remunerado",
"wgt2": 11961.3048
},
{
"Sexo": "Mujer","color": "#800000",
"CISE Abreviada": "Empleador(a) o cuenta propia",
"wgt2": 808354.9869
},
{
"Sexo": "Mujer","color": "#800000",
"CISE Abreviada": "Asalariada(o) sector privado",
"wgt2": 1715994.1451
},
{
"Sexo": "Mujer","color": "#800000",
"CISE Abreviada": "Asalariada(o) sector público",
"wgt2": 509974.1762
},
{
"Sexo": "Mujer","color": "#800000",
"CISE Abreviada": "Personal del servicio doméstico pagado",
"wgt2": 306442.3476
},
{
"Sexo": "Mujer","color": "#800000",
"CISE Abreviada": "Familiar o personal no remunerado",
"wgt2": 18008.9702
}
]
var visualization = d3plus.viz()
.container("#viz")
.data(datos_empleo)
.type("tree_map")
.id(["Sexo","CISE Abreviada"])
.size("wgt2")
.color("color")
.title("Clasificación Internacional de Situación en el Empleo Abreviada según Sexo")
.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.