function getChartColorsArray(e){e=$(e).attr("data-colors");return(e=JSON.parse(e)).map(function(e){e=e.replace(" ","");if(-1==e.indexOf("--"))return e;e=getComputedStyle(document.documentElement).getPropertyValue(e);return e||void 0})}var barchartColors=getChartColorsArray("#overview-chart"),options={chart:{height:290,type:"bar",toolbar:{show:!1}},plotOptions:{bar:{columnWidth:"20%",endingShape:"rounded",borderRadius:6}},dataLabels:{enabled:!1},series:[{name:"Overview",data:[52,66,50,74,36,52,66]}],grid:{yaxis:{lines:{show:!1}}},yaxis:{labels:{formatter:function(e){return e+"hrs"}},title:{text:"% (Percentage)"}},xaxis:{labels:{rotate:-90},categories:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],title:{text:"Week"}},colors:barchartColors},chart=new ApexCharts(document.querySelector("#overview-chart"),options);chart.render();