function generateDayWiseTimeSeries(e,a,t){for(var o=0,r=[];o<a;){var s=e,i=Math.floor(Math.random()*(t.max-t.min+1))+t.min;r.push([s,i]),e+=864e5,o++}return r}var colors=["#3bafda","#26c6da","#00b19d"];(dataColors=$("#campaigns-chart").data("colors"))&&(colors=dataColors.split(","));var options={chart:{height:260,type:"donut"},series:[44,55,41],legend:{show:!1,position:"bottom",horizontalAlign:"center",verticalAlign:"middle",floating:!1,fontSize:"14px",offsetX:0,offsetY:7},labels:["Total Sent","Reached","Opened"],colors:colors,responsive:[{breakpoint:600,options:{chart:{height:210},legend:{show:!1}}}]};(chart=new ApexCharts(document.querySelector("#campaigns-chart"),options)).render();var dataColors;colors=["#3bafda","#26c6da"];(dataColors=$("#revenue-chart").data("colors"))&&(colors=dataColors.split(","));var chart;options={chart:{height:260,type:"area",stacked:!0,toolbar:{show:!1}},colors:colors,dataLabels:{enabled:!1},stroke:{width:[2],curve:"smooth"},series:[{name:"Total Revenue",data:generateDayWiseTimeSeries(new Date("11 Feb 2017 GMT").getTime(),20,{min:100,max:1500})},{name:"Total Pipeline",data:generateDayWiseTimeSeries(new Date("11 Feb 2017 GMT").getTime(),20,{min:100,max:1e3})}],fill:{type:"gradient",gradient:{opacityFrom:.3,opacityTo:.9}},legend:{offsetY:5},xaxis:{type:"datetime"},grid:{padding:{bottom:10}},yaxis:{title:{text:"Revenue",style:{color:void 0,fontSize:"13px",cssClass:"apexcharts-yaxis-title"}}}};(chart=new ApexCharts(document.querySelector("#revenue-chart"),options)).render();