webapps/viz/src/main/webapp/resources/scripts/bubbleChart.js
// Returns a flattened hierarchy containing all leaf nodes under the root.
Returns a flattened hierarchy containing all leaf nodes under the root.
Returns a flattened hierarchy containing all leaf nodes under the root .
function classes(root) {
    var classes = [];
    function recurse(name, node) {
      if (node.children) node.children.forEach(function(child) { recurse(node.name, child); });
      else classes.push({packageName: name, className: node.name, value: node.size});
    }
    recurse(null, root);
    return {children: classes};
  }
function classes ( root ) { var classes = [ ] ; function recurse ( name , node ) { if ( node . children ) node . children . forEach ( function ( child ) { recurse ( node . name , child ) ; } ) ; else classes . push ( { packageName : name , className : node . name , value : node . size } ) ; } recurse ( null , root ) ; return { children : classes } ; }
Returns a flattened hierarchy containing all leaf nodes under the root.
Returns a flattened hierarchy containing all leaf nodes under the root .