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