/**
* Template Name: Xadmino
* Chartjs
* DEMO ONLY MINIFY
*/


!function(r){"use strict";var a=function(){};a.prototype.respChart=function(a,o,e,t){function n(){a.attr("width",r(s).width());switch(o){case"Line":new Chart(i,{type:"line",data:e,options:t});break;case"Doughnut":new Chart(i,{type:"doughnut",data:e,options:t});break;case"Pie":new Chart(i,{type:"pie",data:e,options:t});break;case"Bar":new Chart(i,{type:"bar",data:e,options:t});break;case"Radar":new Chart(i,{type:"radar",data:e,options:t});break;case"PolarArea":new Chart(i,{data:e,type:"polarArea",options:t})}}var i=a.get(0).getContext("2d"),s=r(a).parent();r(window).resize(n),n()},a.prototype.init=function(){var a={labels:["January","February","March","April","May","June","July","August","September"],datasets:[{label:"Sales Analytics",fill:!1,lineTension:.1,backgroundColor:"#03a9f4",borderColor:"#03a9f4",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"#03a9f4",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"#03a9f4",pointHoverBorderColor:"#eef0f2",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:[65,59,80,81,56,55,40,35,30]}]},o={scales:{yAxes:[{ticks:{max:100,min:20,stepSize:10}}]}};this.respChart(r("#lineChart"),"Line",a,o);var e={labels:["Desktops","Tablets","Mobiles"],datasets:[{data:[300,50,100],backgroundColor:["#01ba9a","#03a9f4","#ebeff2"],hoverBackgroundColor:["#01ba9a","#03a9f4","#ebeff2"],hoverBorderColor:"#fff"}]};this.respChart(r("#doughnut"),"Doughnut",e);var t={labels:["Desktops","Tablets","Mobiles"],datasets:[{data:[300,50,100],backgroundColor:["#01ba9a","#03a9f4","#ebeff2"],hoverBackgroundColor:["#01ba9a","#03a9f4","#ebeff2"],hoverBorderColor:"#fff"}]};this.respChart(r("#pie"),"Pie",t);var n={labels:["January","February","March","April","May","June","July"],datasets:[{label:"Sales Analytics",backgroundColor:"rgba(127, 193, 252, 0.3)",borderColor:"#03a9f4",borderWidth:1,hoverBackgroundColor:"rgba(127, 193, 252, 0.6)",hoverBorderColor:"#03a9f4",data:[65,59,80,81,56,55,40,20]}]};this.respChart(r("#bar"),"Bar",n);var i={labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"Desktops",backgroundColor:"rgba(179,181,198,0.2)",borderColor:"rgba(179,181,198,1)",pointBackgroundColor:"rgba(179,181,198,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(179,181,198,1)",data:[65,59,90,81,56,55,40]},{label:"Tablets",backgroundColor:"rgba(3,169,244,0.2)",borderColor:"rgba(3,169,244,1)",pointBackgroundColor:"rgba(3,169,244,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(3,169,244,1)",data:[28,48,40,19,96,27,100]}]};this.respChart(r("#radar"),"Radar",i);var s={datasets:[{data:[11,16,7,18],backgroundColor:["#f62f37","#188ae2","#01ba9a","#f8ca4e"],label:"My dataset",hoverBorderColor:"#fff"}],labels:["Series 1","Series 2","Series 3","Series 4"]};this.respChart(r("#polarArea"),"PolarArea",s)},r.ChartJs=new a,r.ChartJs.Constructor=a}(window.jQuery),function(r){"use strict";r.ChartJs.init()}(window.jQuery);
