function getChartColorsArray(e){if(console.log(e),null!==document.getElementById(e)){var t=document.getElementById(e).getAttribute("data-colors");return(t=JSON.parse(t)).map(function(e){var t=e.replace(" ","");if(-1===t.indexOf(",")){var r=getComputedStyle(document.documentElement).getPropertyValue(t);return r||t}var a=e.split(",");return 2!=a.length?t:"rgba("+getComputedStyle(document.documentElement).getPropertyValue(a[0])+","+a[1]+")"})}}var barchartColors=getChartColorsArray("overview-chart"),options={chart:{height:270,type:"bar",toolbar:{show:!1}},plotOptions:{bar:{columnWidth:"20%",endingShape:"rounded",borderRadius:6}},dataLabels:{enabled:!1},fill:{opacity: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();