$(window).on("load",(function(){var t=d3.select("#bubble-chart"),e=d3.format(",d"),n=d3.scale.category20c(),a=d3.layout.pack().sort(null).size([960,960]).padding(1.5),r=t.append("svg").attr("width",960).attr("height",960).attr("class","bubble");d3.json("../../../app-assets/data/d3/other/flare.json",(function(t,l){if(t)throw t;var s=r.selectAll(".node").data(a.nodes(function(t){var e=[];return function t(n,a){a.children?a.children.forEach((function(e){t(a.name,e)})):e.push({packageName:n,className:a.name,value:a.size})}(null,t),{children:e}}(l)).filter((function(t){return!t.children}))).enter().append("g").attr("class","node").attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));s.append("title").text((function(t){return t.className+": "+e(t.value)})),s.append("circle").attr("r",(function(t){return t.r})).style("fill",(function(t){return n(t.packageName)})),s.append("text").attr("dy",".3em").style("text-anchor","middle").style("font-size","10px").text((function(t){return t.className.substring(0,t.r/3)}))})),d3.select(self.frameElement).style("height","960px")}));