text: !function(i){"use strict";var a=function(){this.$body=i("body"),this.charts=[]};a.prototype.respChart=function(e,r,t,o){Chart.defaults.global.defaultFontColor="rgba(255,255,255,0.5)",Chart.defaults.scale.gridLines.color="rgba(255,255,255,0.05)";var n=e.get(0).getContext("2d"),l=i(e).parent();return function(){var a;switch(e.attr("width",i(l).width()),r){case"Line":a=new Chart(n,{type:"line",data:t,options:o});break;case"Doughnut":a=new Chart(n,{type:"doughnut",data:t,options:o});break;case"Pie":a=new Chart(n,{type:"pie",data:t,options:o});break;case"Bar":a=new Chart(n,{type:"bar",data:t,options:o});break;case"Radar":a=new Chart(n,{type:"radar",data:t,options:o});break;case"PolarArea":a=new Chart(n,{data:t,type:"polarArea",options:o})}return a}()},a.prototype.initCharts=function(){var a=[];if(0<i("#line-chart-example").length){a.push(this.respChart(i("#line-chart-example"),"Line",{labels:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],datasets:[{label:"Current Week",backgroundColor:"rgba(26, 128, 156, 0.3)",borderColor:"#1abc9c",data:[32,42,42,62,52,75,62]},{label:"Previous Week",fill:!0,backgroundColor:"transparent",borderColor:"#f1556c",borderDash:[5,5],data:[42,58,66,93,82,105,92]}]},{maintainAspectRatio:!1,legend:{display:!1},tooltips:{backgroundColor:"#dee2e6",titleFontColor:"#6658dd",bodyFontColor:"#000",bodyFontSize:14,displayColors:!1},hover:{intersect:!0},plugins:{filler:{propagate:!1}},scales:{xAxes:[{reverse:!0,gridLines:{color:"rgba(255,255,255,0.05)"}}],yAxes:[{ticks:{stepSize:20},display:!0,borderDash:[5,5],gridLines:{color:"rgba(0,0,0,0)",fontColor:"#fff"}}]}}))}if(0<i("#bar-chart-example").length){a.push(this.respChart(i("#bar-chart-example"),"Bar",{labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],datasets:[{label:"Sales Analytics",backgroundColor:"#4a81d4",borderColor:"#4a81d4",hoverBackgroundColor:"#4a81d4",hoverBorderColor:"#4a81d4",data:[65,59,80,81,56,89,40,32,65,59,80,81]},{label:"Dollar Rate",backgroundColor:"#525e6b",borderColor:"#525e6b",hoverBackgroundColor:"#525e6b",hoverBorderColor:"#525e6b",data:[89,40,32,65,59,80,81,56,89,40,65,59]}]},{maintainAspectRatio:!1,legend:{display:!1},scales:{yAxes:[{gridLines:{display:!1},stacked:!1,ticks:{stepSize:20}}],xAxes:[{barPercentage:.7,categoryPercentage:.5,stacked:!1,gridLines:{color:"rgba(0,0,0,0.01)"}}]}}))}if(0<i("#pie-chart-example").length){a.push(this.respChart(i("#pie-chart-example"),"Pie",{labels:["Direct","Affilliate","Sponsored","E-mail"],datasets:[{data:[300,135,48,154],backgroundColor:["#6658dd","#fa5c7c","#4fc6e1","#ebeff2"],borderColor:"transparent"}]},{maintainAspectRatio:!1,legend:{display:!1}}))}if(0<i("#donut-chart-example").length){a.push(this.respChart(i("#donut-chart-example"),"Doughnut",{labels:["Direct","Affilliate","Sponsored"],datasets:[{data:[128,78,48],backgroundColor:["#6c757d","#1abc9c","#ebeff2"],borderColor:"transparent",borderWidth:"3"}]},{maintainAspectRatio:!1,cutoutPercentage:60,legend:{display:!1}}))}if(0<i("#polar-chart-example").length){a.push(this.respChart(i("#polar-chart-example"),"PolarArea",{labels:["Direct","Affilliate","Sponsored","E-mail"],datasets:[{data:[251,135,48,154],backgroundColor:["#4a81d4","#fa5c7c","#4fc6e1","#ebeff2"],borderColor:"transparent"}]}))}if(0<i("#radar-chart-example").length){a.push(this.respChart(i("#radar-chart-example"),"Radar",{labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"Desktops",backgroundColor:"rgba(57,175,209,0.2)",borderColor:"#39afd1",pointBackgroundColor:"#39afd1",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"#39afd1",data:[65,59,90,81,56,55,40]},{label:"Tablets",backgroundColor:"rgba(161, 127, 224,0.2)",borderColor:"#a17fe0",pointBackgroundColor:"#a17fe0",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"#a17fe0",data:[28,48,40,19,96,27,100]}]},{maintainAspectRatio:!1}))}return a},a.prototype.init=function(){var e=this;Chart.defaults.global.defaultFontFamily='-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',e.charts=this.initCharts(),i(window).on("resize",function(a){i.each(e.charts,function(a,e){try{e.destroy()}catch(a){}}),e.charts=e.initCharts()})},i.Dashboard3=new a,i.Dashboard3.Constructor=a}(window.jQuery),function(a){"use strict";window.jQuery.Dashboard3.init()}();