function statHalfDonut(svgname,jsondata){nv.addGraph(function(){var width=400,height=400;var chart=nv.models.pieChart().x(function(d){return d.key}).values(function(d){return d.value}).showLabels(false).color(function(d){return d.data.color}).width(width).height(height).donut(true);chart.pie.startAngle(function(d){return d.startAngle/2-Math.PI/2}).endAngle(function(d){return d.endAngle/2-Math.PI/2});d3.select("#"+svgname).datum(JSON.parse(jsondata)).transition().duration(1200).attr("width",width).attr("height",height).call(chart);return chart})}function statBar(svgname,jsondata,title,width){nv.addGraph(function(){var height=400;var chart=nv.models.discreteBarChart().x(function(d){return d.label}).y(function(d){return d.value}).width(width).height(height).staggerLabels(true).tooltips(false).showValues(false);d3.select("#"+svgname).datum([JSON.parse(jsondata)]).attr("height",height).call(chart);d3.select("#"+svgname).append("text").attr("x",200).attr("y",12).attr("text-anchor","middle").style("font-weight","bold").text(title);nv.utils.windowResize(chart.update);return chart})}

function statHalfDonut(t,e){nv.addGraph(function(){var n=400,a=400,r=nv.models.pieChart().x(function(t){return t.key}).values(function(t){return t.value}).showLabels(!1).color(function(t){return t.data.color}).width(n).height(a).donut(!0);return r.pie.startAngle(function(t){return t.startAngle/2-Math.PI/2}).endAngle(function(t){return t.endAngle/2-Math.PI/2}),d3.select("#"+t).datum(JSON.parse(e)).transition().duration(1200).attr("width",n).attr("height",a).call(r),r})}function statBar(t,e,n,a){nv.addGraph(function(){var r=380,u=nv.models.discreteBarChart().x(function(t){return t.label}).y(function(t){return t.value}).width(a).height(r).staggerLabels(!0).tooltips(!1).showValues(!1);return d3.select("#"+t).datum([JSON.parse(e)]).attr("height",r).call(u),d3.select("#"+t).append("text").attr("x",200).attr("y",12).attr("text-anchor","middle").style("font-weight","bold").text(n),nv.utils.windowResize(u.update),u})}
Add minifyed stats.js