function(a){if(!arguments.length)returnp;p=a;returnt},t.forceY=function(a){if(!arguments.length)returnj;j=a;returnt},t.stacked=function(a){if(!arguments.length)returnl;l=a;returnt},t.clipEdge=function(a){if(!arguments.length)returnk;k=a;returnt},t.color=function(b){if(!arguments.length)returnm;m=a.utils.getColor(b);returnt},t.id=function(a){if(!arguments.length)returng;g=a;returnt},t.delay=function(a){if(!arguments.length)returnn;n=a;returnt};returnt},a.models.multiBarChart=function(){functionv(a){a.each(function(k){varw=d3.select(this),z=this,A=(c||parseInt(w.style("width"))||960)-b.left-b.right,B=(d||parseInt(w.style("height"))||400)-b.top-b.bottom;if(!k||!k.length||!k.filter(function(a){returna.values.length}).length){w.append("text").attr("class","nvd3 nv-noData").attr("x",A/2).attr("y",B/2).attr("dy","-.7em").style("text-anchor","middle").text(n);returnv}w.select(".nv-noData").remove(),l=o.xScale(),m=o.yScale();varC=w.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([k]),D=C.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g");D.append("g").attr("class","nv-x nv-axis"),D.append("g").attr("class","nv-y nv-axis"),D.append("g").attr("class","nv-barsWrap"),D.append("g").attr("class","nv-legendWrap"),D.append("g").attr("class","nv-controlsWrap");varE=C.select("g");g&&(r.width(A/2),E.select(".nv-legendWrap").datum(k).call(r),b.top!=r.height()&&(b.top=r.height(),B=(d||parseInt(w.style("height"))||400)-b.top-b.bottom),E.select(".nv-legendWrap").attr("transform","translate("+A/2+","+-b.top+")")),o.width(A).height(B).color(k.map(function(a,b){returna.color||e(a,b)}).filter(function(a,b){return!k[b].disabled}));if(f){varF=[{key:"Grouped",disabled:o.stacked()},{key:"Stacked",disabled:!o.stacked()}];s.width(180).color(["#444","#444","#444"]),E.select(".nv-controlsWrap").datum(F).attr("transform","translate(0,"+-b.top+")").call(s)}E.attr("transform","translate("+b.left+","+b.top+")");varG=E.select(".nv-barsWrap").datum(k.filter(function(a){return!a.disabled}));d3.transition(G).call(o),p.scale(l).ticks(A/100).tickSize(-B,0),E.select(".nv-x.nv-axis").attr("transform","translate(0,"+m.range()[0]+")"),d3.transition(E.select(".nv-x.nv-axis")).call(p);varH=E.select(".nv-x.nv-axis > g").selectAll("g");H.selectAll("line, text").style("opacity",1),h&&H.filter(function(a,b){returnb%Math.ceil(k[0].values.length/(A/100))!==0}).selectAll("text, line").style("opacity",0),i&&H.selectAll("text").attr("transform",function(a,b,c){return"rotate("+i+" 0,0)"}).attr("text-transform",i>0?"start":"end"),q.scale(m).ticks(B/36).tickSize(-A,0),d3.transition(E.select(".nv-y.nv-axis")).call(q),r.dispatch.on("legendClick",function(b,c){b.disabled=!b.disabled,k.filter(function(a){return!a.disabled}).length||k.map(function(a){a.disabled=!1,C.selectAll(".nv-series").classed("disabled",!1);returna}),a.transition().call(v)}),s.dispatch.on("legendClick",function(b,c){if(!!b.disabled){F=F.map(function(a){a.disabled=!0;returna}),b.disabled=!1;switch(b.key){case"Grouped":o.stacked(!1);break;case"Stacked":o.stacked(!0)}a.transition().call(v)}}),t.on("tooltipShow",function(a){j&&u(a,z.parentNode)}),v.update=function(){a.transition().call(v)},v.container=this});returnv}varb={top:30,right:20,bottom:50,left:60},c=null,d=null,e=a.utils.defaultColor(),f=!0,g=!0,h=!0,i=0,j=!0,k=function(a,b,c,d,e){return"<h3>"+a+"</h3>"+"<p>"+c+" on "+b+"</p>"},l,m,n="No Data Available.",o=a.models.multiBar().stacked(!1),p=a.models.axis().orient("bottom").highlightZero(!1).showMaxMin(!1),q=a.models.axis().orient("left"),r=a.models.legend().height(30),s=a.models.legend().height(30),t=d3.dispatch("tooltipShow","tooltipHide");p.tickFormat(function(a){returna}),q.tickFormat(d3.format(",.1f"));varu=function(b,c){vard=b.pos[0]+(c.offsetLeft||0),e=b.pos[1]+(c.offsetTop||0),f=p.tickFormat()(o.x()(b.point,b.pointIndex)),g=q.tickFormat()(o.y()(b.point,b.pointIndex)),h=k(b.series.key,f,g,b,v);a.tooltip.show([d,e],h,b.value<0?"n":"s",null,c)};o.dispatch.on("elementMouseover.tooltip2",function(a){a.pos=[a.pos[0]+b.left,a.pos[1]+b.top],t.to
,j.dispatch.on("elementMouseover.tooltip",function(a){a.pos=[a.pos[0]+b.left,a.pos[1]+b.top],l.tooltipShow(a)}),g&&l.on("tooltipShow",function(a){m(a)}),j.dispatch.on("elementMouseout.tooltip",function(a){l.tooltipHide(a)}),g&&l.on("tooltipHide",a.tooltip.cleanup),n.update=function(){f.transition().call(n)},n.container=this});returnn}varb={top:30,right:20,bottom:20,left:20},c=null,d=null,e=!0,f=a.utils.defaultColor(),g=!0,h=function(a,b,c,d){return"<h3>"+a+"</h3>"+"<p>"+b+"</p>"},i="No Data Available.",j=a.models.pie(),k=a.models.legend().height(30),l=d3.dispatch("tooltipShow","tooltipHide"),m=function(b,c){vard=b.pos[0]+(c&&c.offsetLeft||0),e=b.pos[1]+(c&&c.offsetTop||0),f=j.valueFormat()(j.y()(b.point)),g=h(j.x()(b.point),f,b,n);a.tooltip.show([d,e],g,b.value<0?"n":"s",null,c)};n.dispatch=l,n.pie=j,d3.rebind(n,j,"valueFormat","values","x","y","id","showLabels","donutLabelsOutside","donut","labelThreshold"),n.margin=function(a){if(!arguments.length)returnb;b=a;returnn},n.width=function(a){if(!arguments.length)returnc;c=a;returnn},n.height=function(a){if(!arguments.length)returnd;d=a;returnn},n.color=function(b){if(!arguments.length)returnf;f=a.utils.getColor(b),k.color(f),j.color(f);returnn},n.showLegend=function(a){if(!arguments.length)returne;e=a;returnn},n.tooltips=function(a){if(!arguments.length)returng;g=a;returnn},n.tooltipContent=function(a){if(!arguments.length)returnh;h=a;returnn},n.noData=function(a){if(!arguments.length)returni;i=a;returnn};returnn},a.models.scatter=function(){functionG(a){a.each(function(a){functionP(){if(!q)return!1;varc,d=d3.merge(a.map(function(a,b){returna.values.filter(r).map(function(a,c){return[g(j(a,c))*(Math.random()/1e12+1),h(k(a,c))*(Math.random()/1e12+1),b,c]})}));if(t){M.append("clipPath").attr("id","nv-points-clip-"+f);vare=K.select("#nv-points-clip-"+f).selectAll("circle").data(d);e.enter().append("circle").attr("r",u),e.exit().remove(),e.attr("cx",function(a){returna[0]}).attr("cy",function(a){returna[1]}),K.select(".nv-point-paths").attr("clip-path","url(#nv-points-clip-"+f+")")}if(B===!0){vari=d3.geom.voronoi(d).map(function(a,b){return{data:a,series:d[b][2],point:d[b][3]}}),l=K.select(".nv-point-paths").selectAll("path").data(i);l.enter().append("path").attr("class",function(a,b){return"nv-path-"+b}),l.exit().remove(),l.attr("d",function(a){return"M"+a.data.join(",")+"Z"}),c=l}else{varm=d.map(function(a,b){return{data:a,series:d[b][2],point:d[b][3]}});c=K.select(".nv-groups").selectAll(".nv-group").selectAll("path.nv-point").data(m).style("pointer-events","auto")}c.on("click",function(c){vard=a[c.series],e=d.values[c.point];A.elementClick({point:e,series:d,pos:[g(j(e,c.point))+b.left,h(k(e,c.point))+b.top],seriesIndex:c.series,pointIndex:c.point})}).on("mouseover",function(c){vard=a[c.series],e=d.values[c.point];A.elementMouseover({point:e,series:d,pos:[g(j(e,c.point))+b.left,h(k(e,c.point))+b.top],seriesIndex:c.series,pointIndex:c.point})}).on("mouseout",function(b,c){vard=a[b.series],e=d.values[b.point];A.elementMouseout({point:e,series:d,seriesIndex:b.series,pointIndex:b.point})})}varG=c-b.left-b.right,H=d-b.top-b.bottom,I=d3.select(this);a=a.map(function(a,b){a.values=a.values.map(function(a){a.series=b;returna});returna});varJ=v&&w&&x?[]:d3.merge(a.map(function(a){returna.values.map(function(a,b){return{x:j(a,b),y:k(a,b),size:l(a,b)}})}));g.domain(v||d3.extent(J.map(function(a){returna.x}).concat(n))).range([0,G]),h.domain(w||d3.extent(J.map(function(a){returna.y}).concat(o))).range([H,0]),i.domain(x||d3.extent(J.map(function(a){returna.size}).concat(p))).range(y||[16,256]);if(g.domain()[0]===g.domain()[1]||h.domain()[0]===h.domain()[1])z=!0;g.domain()[0]===g.domain()[1]&&(g.domain()[0]?g.domain([g.domain()[0]-g.domain()[0]*.01,g.domain()[1]+g.domain()[1]*.01]):g.domain([-1,1])),h.domain()[0]===h.domain()[1]&&(h.domain()[0]?h.domain([h.domain()[0]+h.domain()[0]*.01,h.domain()[1]-h.domain()[1]*.01]):h.domain([-1,1])),C=C||g,D=D||h,E=E||i;varK=I.selectAll("g.nv-wrap.nv-scatter").data([a]),L=K.enter().append("g").attr("class","n