!function(w){var k={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(e,i){return"
"+e+"
"+Math.round(i.percent)+"%
"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};w.plot.plugins.push({init:function(p){var r,h=null,g=null,c=null,u=null,a=!1,d=null,o=[];function f(e){var i;0k.series.pie.combine.threshold)&&a.push({data:[[1,n]],color:e[l].color,label:e[l].label,angle:n*Math.PI*2/i,percent:n/(i/100)})}1=n/2-i||t<=10)return;d.save(),d.translate(e,i),d.globalAlpha=s,d.fillStyle="#000",d.translate(c,u),d.scale(1,k.series.pie.tilt);for(var r=1;r<=10;r++)d.beginPath(),d.arc(0,0,t,0,2*Math.PI,!1),d.fill(),t-=r;d.restore()}(),!function(){var s=Math.PI*k.series.pie.startAngle,t=1=100*k.series.pie.label.threshold&&!function(e,i,s){if(0==e.data[0][1])return!0;var t=k.legend.labelFormatter,r=k.series.pie.label.formatter;t=t?t(e.label,e):e.label;r&&(t=r(t,e));r=(i+e.angle+i)/2,i=c+Math.round(Math.cos(r)*a),r=u+Math.round(Math.sin(r)*a)*k.series.pie.tilt,t=""+t+"";h.append(t);t=h.children("#pieLabel"+s),s=r-t.height()/2,r=i-t.width()/2;if(t.css("top",s),t.css("left",r),0<0-s||0<0-r||n-(s+t.height())<0||l-(r+t.width())<0)return!1;{0!=k.series.pie.label.background.opacity&&(null==(i=k.series.pie.label.background.color)&&(i=e.color),r="top:"+s+"px;left:"+r+"px;",w("
").css("opacity",k.series.pie.label.background.opacity).insertBefore(t))}return!0}(o[i],e,i))return!1;e+=o[i].angle}return!0}();function i(e,i,s){e<=0||isNaN(e)||(s?d.fillStyle=i:(d.strokeStyle=i,d.lineJoin="round"),d.beginPath(),1e-9Could not draw pie with labels contained inside canvas"));e.setSeries&&e.insertLegend&&(e.setSeries(o),e.insertLegend());function r(){d.clearRect(0,0,l,n),h.children().filter(".pieLabel, .pieLabelBackground").remove()}}(e,i)})},options:k,name:"pie",version:"1.1"})}(jQuery);