text: Apex.grid={padding:{right:0,left:0}},Apex.dataLabels={enabled:!1};var randomizeArray=function(e){for(var r,t,a=e.slice(),s=a.length;0!==s;)t=Math.floor(Math.random()*s),r=a[s-=1],a[s]=a[t],a[t]=r;return a},sparklineData=[47,45,54,38,56,24,65,31,37,39,62,51,35,41,35,27,93,53,61,27,54,43,19,46],colorPalette=["#00D8B6","#008FFB","#FEB019","#FF4560","#775DD0"],salesspark={chart:{type:"area",height:180,sparkline:{enabled:!0}},stroke:{width:2,curve:"straight"},fill:{opacity:.2},series:[{name:"Hyper Sales ",data:randomizeArray(sparklineData)}],yaxis:{min:0},colors:["#DCE6EC"],title:{text:"$424,652",offsetX:20,offsetY:20,style:{fontSize:"24px"}},subtitle:{text:"Sales",offsetX:20,offsetY:55,style:{fontSize:"14px"}}};new ApexCharts(document.querySelector("#sales-spark"),salesspark).render();var profitspark={chart:{type:"bar",height:180,sparkline:{enabled:!0}},stroke:{width:0,curve:"straight"},fill:{opacity:.5},series:[{name:"Net Profits ",data:randomizeArray(sparklineData)}],xaxis:{crosshairs:{width:1}},yaxis:{min:0},colors:["#0acf97"],title:{text:"$135,965",offsetX:20,offsetY:20,style:{fontSize:"24px"}},subtitle:{text:"Profits",offsetX:20,offsetY:55,style:{fontSize:"14px"}}};new ApexCharts(document.querySelector("#profit-spark"),profitspark).render();var spark1={chart:{type:"line",height:100,sparkline:{enabled:!0}},series:[{data:[25,66,41,59,25,44,12,36,9,21]}],stroke:{width:4,curve:"smooth"},markers:{size:0},colors:["#734CEA"]},spark2={chart:{type:"bar",height:100,sparkline:{enabled:!0}},series:[{data:[12,14,2,47,32,44,14,55,41,69]}],stroke:{width:3,curve:"smooth"},markers:{size:0},colors:["#34bfa3"]},spark3={chart:{type:"line",height:100,sparkline:{enabled:!0}},series:[{data:[47,45,74,32,56,31,44,33,45,19]}],stroke:{width:4,curve:"smooth"},markers:{size:0},colors:["#f4516c"]},spark4={chart:{type:"bar",height:100,sparkline:{enabled:!0}},plotOptions:{bar:{horizontal:!1,endingShape:"rounded",columnWidth:"55%"}},series:[{data:[15,75,47,65,14,32,19,54,44,61]}],stroke:{width:3,curve:"smooth"},markers:{size:0},colors:["#00c5dc"]};new ApexCharts(document.querySelector("#spark1"),spark1).render(),new ApexCharts(document.querySelector("#spark2"),spark2).render(),new ApexCharts(document.querySelector("#spark3"),spark3).render(),new ApexCharts(document.querySelector("#spark4"),spark4).render();