$(window).on("load",function(){var e=new Chartist.Pie("#donut-chart",{series:[10,20,50,20,5,50,15],labels:[1,2,3,4,5,6,7]},{donut:!0,showLabel:!1});e.on("draw",function(e){if("slice"===e.type){var n=e.element._node.getTotalLength();e.element.attr({"stroke-dasharray":n+"px "+n+"px"});var t={"stroke-dashoffset":{id:"anim"+e.index,dur:1e3,from:-n+"px",to:"0px",easing:Chartist.Svg.Easing.easeOutQuint,fill:"freeze"}};0!==e.index&&(t["stroke-dashoffset"].begin="anim"+(e.index-1)+".end"),e.element.attr({"stroke-dashoffset":-n+"px"}),e.element.animate(t,!1)}}),e.on("created",function(){window.__anim21278907124&&(clearTimeout(window.__anim21278907124),window.__anim21278907124=null),window.__anim21278907124=setTimeout(e.update.bind(e),1e4)})});