$(window).on("load",(function(){var e,t,i,n,a,o,r,s;e=function(e,t,i){var n=new Chartist.Line("#"+e,{labels:t,series:[i]},{lineSmooth:Chartist.Interpolation.simple({divisor:2}),fullWidth:!0,chartPadding:{right:25},series:{"series-1":{showArea:!1}},axisX:{showGrid:!1},axisY:{labelInterpolationFnc:function(e){return e/1e3+"K"},scaleMinSpace:40},plugins:[Chartist.plugins.tooltip()],low:0,showPoint:!1,height:300});n.on("created",(function(t){var i=t.svg.querySelector("defs")||t.svg.elem("defs"),n=(t.svg.width(),t.svg.height(),i.elem("filter",{x:0,y:"-10%",id:"shadow"+e},"",!0));return n.elem("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"24",result:"offsetBlur"}),n.elem("feOffset",{dx:"0",dy:"32"}),n.elem("feBlend",{in:"SourceGraphic",mode:"multiply"}),i.elem("linearGradient",{id:e+"-gradient",x1:0,y1:0,x2:1,y2:0}).elem("stop",{offset:0,"stop-color":"rgba(102, 110, 232, 1)"}).parent().elem("stop",{offset:1,"stop-color":"rgba(102, 110, 232, .20)"}),i})).on("draw",(function(t){"line"===t.type?t.element.attr({filter:"url(#shadow"+e+")"}):"point"===t.type&&new Chartist.Svg(t.element._node.parentNode).elem("line",{x1:t.x,y1:t.y,x2:t.x+.01,y2:t.y,class:"ct-point-content"}),"line"!==t.type&&"area"!=t.type||t.element.animate({d:{begin:1e3*t.index,dur:1e3,from:t.path.clone().scale(1,0).translate(0,t.chartRect.height()).stringify(),to:t.path.clone().stringify(),easing:Chartist.Svg.Easing.easeOutQuint}})}))},t=["1st","2nd","3rd","4th","5th","6th","7th","8th"],i={name:"series-1",data:[0,4500,2600,6100,2600,6500,3200,6800]},n=["W1","W2","W4","W5","W6","W7","W8"],a={name:"series-1",data:[77e3,18e3,61e3,26e3,58e3,32e3,7e4,45e3]},o=["AUG","SEP","OTC","NOV","DEC","JAN","FEB"],r={name:"series-1",data:[1e5,5e5,3e5,7e5,1e5,2e5,7e5,5e4]},(s=function(s){switch((s||$("#ecommerceChartView .chart-action").find(".active")).attr("href")){case"#scoreLineToDay":e("scoreLineToDay",t,i);break;case"#scoreLineToWeek":e("scoreLineToWeek",n,a);break;case"#scoreLineToMonth":e("scoreLineToMonth",o,r)}})(),$(".chart-action li a").on("click",(function(){s($(this))}))}));