$(window).on("load",(function(){new PerfectScrollbar("#recent-orders",{wheelPropagation:!0});Morris.Bar.prototype.fillForSeries=function(e){return"0-#fff-#f00:20-#000"},Morris.Bar({element:"monthly-sales",data:[{month:"Jan",sales:500},{month:"Feb",sales:1500},{month:"Mar",sales:1459},{month:"Apr",sales:1289},{month:"May",sales:1647},{month:"Jun",sales:2156},{month:"Jul",sales:1835},{month:"Aug",sales:2356},{month:"Sep",sales:1459},{month:"Oct",sales:1289},{month:"Nov",sales:1647},{month:"Dec",sales:2156}],xkey:"month",ykeys:["sales"],labels:["Sales"],barGap:4,barSizeRatio:.3,gridTextColor:"#bfbfbf",gridLineColor:"#E4E7ED",numLines:5,gridtextSize:14,resize:!0,barColors:["#1EC481"],hideHover:"auto"})})),$(window).on("load",(function(){Chart.defaults.derivedLine=Chart.defaults.line;var e=Chart.controllers.line.prototype.draw,o=Chart.controllers.line.extend({draw:function(){e.apply(this,arguments);var o=this.chart.chart.ctx,r=o.stroke;o.stroke=function(){o.save(),o.shadowColor="#1E9FF2",o.shadowBlur=30,o.shadowOffsetX=0,o.shadowOffsetY=20,r.apply(this,arguments),o.restore()}}});Chart.controllers.derivedLine=o;var r=document.querySelector("#thisYearRevenue").getContext("2d"),a=(new Chart(r,{type:"derivedLine",data:{labels:["","","","","","","",""],datasets:[{data:[5e3,1e4,4e3,14500,8e3,18500,8e3,2e4],borderWidth:4,borderColor:"#1E9FF2",pointBackgroundColor:"#FFF",pointBorderColor:"#1E9FF2",pointHoverBackgroundColor:"#FFF",pointHoverBorderColor:"#1E9FF2",pointRadius:0,pointHoverRadius:6,fill:!1}]},options:{responsive:!0,tooltips:{displayColors:!1,callbacks:{label:function(e,o){},title:function(){}}},legend:{display:!1},scales:{xAxes:[{gridLines:{display:!1}}],yAxes:[{ticks:{padding:10,stepSize:5e3,max:2e4,min:0},gridLines:{display:!0,drawBorder:!1,lineWidth:1,zeroLineColor:"#e5e5e5"}}]}}}),document.querySelector("#lastYearRevenue").getContext("2d"));new Chart(a,{type:"line",data:{labels:["Jan","Feb","Mar","Apr","May","Jun","julie","Aug"],datasets:[{data:[7e3,15e3,6e3,10500,3e3,11500,4e3,1e4],borderWidth:4,borderDash:[8,4],borderColor:"#c3c3c3",pointBackgroundColor:"#FFF",pointBorderColor:"#c3c3c3",pointHoverBackgroundColor:"#FFF",pointHoverBorderColor:"#c3c3c3",pointRadius:0,pointHoverRadius:6,fill:!1}]},options:{responsive:!0,tooltips:{displayColors:!1,callbacks:{label:function(e,o){},title:function(){}}},legend:{display:!1},scales:{xAxes:[{gridLines:{display:!1}}],yAxes:[{ticks:{padding:10,stepSize:5e3,max:2e4,min:0},gridLines:{display:!0,drawBorder:!1,zeroLineColor:"#e5e5e5"}}]}}});Morris.Donut({element:"sessions-browser-donut-chart",data:[{label:"India",value:3500},{label:"USA",value:2500},{label:"Germany",value:2e3},{label:"New York",value:1e3},{label:"Aingapore",value:500}],resize:!0,colors:["#2DCEE3","#16D39A","#40C7CA","#FFA87D","#FF7588"]})})),$("#world-map-markers").vectorMap({map:"world_mill",backgroundColor:"#fff",zoomOnScroll:!1,series:{regions:[{values:visitorData,scale:["#ff7588","#fddde1"],normalizeFunction:"polynomial"}]},onRegionTipShow:function(e,o,r){o.html(o.html()+" (Visitor - "+visitorData[r]+")")}});