var colors=["#39afd1","#ffbc00"],dataColors=$("#simple-donut").data("colors"),options={chart:{height:262,type:"donut"},series:[4,7],legend:{show:!0,position:"bottom",horizontalAlign:"center",verticalAlign:"middle",floating:!1,fontSize:"14px",offsetX:0,offsetY:7},labels:["Analysis 4","Visits 7"],colors:colors=dataColors?dataColors.split(","):colors,responsive:[{breakpoint:600,options:{chart:{height:240},legend:{show:!1}}}]},chart=new ApexCharts(document.querySelector("#simple-donut"),options),dataColors=(chart.render(),$("#booked-revenue-chart").data("colors")),options4={chart:{type:"bar",height:200,sparkline:{enabled:!0}},plotOptions:{bar:{horizontal:!1,columnWidth:"60%",borderRadius:4}},colors:colors=dataColors?dataColors.split(","):colors,series:[{data:[2,3,2,7,4,2,3]}],xaxis:{categories:["S","M","T","W","T","F","S"],labels:{style:{colors:colors,fontSize:"14px"}}},legend:{offsetY:7},grid:{row:{colors:["transparent","transparent"],opacity:.2},borderColor:"#f1f3fa"}};new ApexCharts(document.querySelector("#booked-revenue-chart"),options4).render();