dist/js/d3-industries copia.js
/**** --- NEST DATA: data nest for tree ***/
NEST DATA: data nest for tree
NEST DATA : data nest for tree
function nest_tree_data(data){
        let nested_tree_data = d3.nest()
            .key(function(d) {
                return d.centro;
            })
            .key(function(d) {
                return d.capacidad_dos;
            })
            .key(function(d) {
                return d.cod;
            })
            .entries(data);
        return nested_tree_data;     
	}
function nest_tree_data ( data ) { let nested_tree_data = d3 . nest ( ) . key ( function ( d ) { return d . centro ; } ) . key ( function ( d ) { return d . capacidad_dos ; } ) . key ( function ( d ) { return d . cod ; } ) . entries ( data ) ; return nested_tree_data ; }
NEST DATA: data nest for tree
NEST DATA : data nest for tree
//.key(function(d) { return d.capacidad_uno; }) //.rollup(function(v) { return v.length; })  // rollup takes the array of values for each group and it produces a value based on that array