Skip to content

Instantly share code, notes, and snippets.

@valegui

valegui/index.html

Created Dec 19, 2016
Embed
What would you like to do?
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 sample_data =[
{
"Sexo": "Hombre",
"CISE Abreviada": "Empleador(a) o cuenta propia",
"wgt2": 991622.3944
},
{
"Sexo": "Hombre",
"CISE Abreviada": "Asalariada(o) sector privado",
"wgt2": 2729846.0418
},
{
"Sexo": "Hombre",
"CISE Abreviada": "Asalariada(o) sector público",
"wgt2": 459261.2843
},
{
"Sexo": "Hombre",
"CISE Abreviada": "Personal del servicio doméstico pagado",
"wgt2": 38673.9493
},
{
"Sexo": "Hombre",
"CISE Abreviada": "Familiar o personal no remunerado",
"wgt2": 11961.3048
},
{
"Sexo": "Mujer",
"CISE Abreviada": "Empleador(a) o cuenta propia",
"wgt2": 808354.9869
},
{
"Sexo": "Mujer",
"CISE Abreviada": "Asalariada(o) sector privado",
"wgt2": 1715994.1451
},
{
"Sexo": "Mujer",
"CISE Abreviada": "Asalariada(o) sector público",
"wgt2": 509974.1762
},
{
"Sexo": "Mujer",
"CISE Abreviada": "Personal del servicio doméstico pagado",
"wgt2": 306442.3476
},
{
"Sexo": "Mujer",
"CISE Abreviada": "Familiar o personal no remunerado",
"wgt2": 18008.9702
}
]
var visualization = d3plus.viz()
.container("#viz")
.data(sample_data)
.type("tree_map")
.id(["Sexo","CISE Abreviada"])
.size("wgt2")
.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.