function generateData(e,a,t){let r=0;for(var o=[];r<a;){var m=Math.floor(750*Math.random())+1,n=Math.floor(Math.random()*(t.max-t.min+1))+t.min,i=Math.floor(61*Math.random())+15;o.push([m,n,i]),r++}return o}function generateData1(e,a,t){let r=0;for(var o=[];r<a;){var m=Math.floor(Math.random()*(t.max-t.min+1))+t.min,n=Math.floor(61*Math.random())+15;o.push([e,m,n]),e+=864e5,r++}return o}new CustomApexChart({selector:"#simple-bubble",options:()=>({chart:{height:350,type:"bubble",toolbar:{show:!1}},dataLabels:{enabled:!1},series:[{name:"Bubble 1",data:generateData(new Date("11 Feb 2017 GMT").getTime(),10,{min:10,max:60})},{name:"Bubble 2",data:generateData(new Date("11 Feb 2017 GMT").getTime(),10,{min:10,max:60})},{name:"Bubble 3",data:generateData(new Date("11 Feb 2017 GMT").getTime(),10,{min:10,max:60})}],fill:{opacity:.8,gradient:{enabled:!1}},colors:[theme("chart-primary"),theme("chart-secondary"),theme("chart-gamma")],xaxis:{tickAmount:12,type:"category"},yaxis:{max:70},grid:{borderColor:[theme("chart-order-color")],padding:{top:-20,right:0,bottom:-5,left:10}},legend:{offsetY:7}})}),new CustomApexChart({selector:"#threed-bubble",options:()=>({chart:{height:350,type:"bubble",toolbar:{show:!1}},dataLabels:{enabled:!1},series:[{name:"Product 1",data:generateData1(new Date("11 Feb 2017 GMT").getTime(),10,{min:10,max:60})},{name:"Product 2",data:generateData1(new Date("11 Feb 2017 GMT").getTime(),10,{min:10,max:60})},{name:"Product 3",data:generateData1(new Date("11 Feb 2017 GMT").getTime(),10,{min:10,max:60})},{name:"Product 4",data:generateData1(new Date("11 Feb 2017 GMT").getTime(),10,{min:10,max:60})}],fill:{type:"gradient"},colors:[theme("chart-delta"),theme("chart-beta"),theme("chart-zeta"),theme("chart-alpha")],xaxis:{tickAmount:12,type:"datetime",labels:{rotate:0}},yaxis:{max:70},legend:{offsetY:10},grid:{borderColor:[theme("chart-order-color")],padding:{top:-20,right:0,bottom:0,left:10}}})}),new CustomApexChart({selector:"#three-bubble",options:()=>({series:[{name:"Social Campaigns",data:[[150,300,35]]},{name:"Email Newsletter",data:[[250,350,35]]},{name:"TV Campaign",data:[[350,450,30]]},{name:"Google Ads",data:[[450,250,25]]},{name:"Courses",data:[[500,500,30]]},{name:"Radio",data:[[600,250,28]]}],chart:{fontFamily:"inherit",type:"bubble",height:350,toolbar:{show:!1}},plotOptions:{bubble:{minBubbleRadius:5,maxBubbleRadius:35}},legend:{show:!1},dataLabels:{enabled:!1},fill:{opacity:.8},xaxis:{type:"numeric",tickAmount:7,min:0,max:700},yaxis:{tickAmount:7,min:0,max:700},tooltip:{y:{formatter:function(e){return"$"+e+"K"}},z:{title:"Impressions: "}},colors:[theme("chart-primary"),theme("chart-secondary"),theme("chart-delta"),theme("chart-alpha"),theme("chart-zeta"),theme("chart-beta")],grid:{borderColor:[theme("chart-order-color")],padding:{top:-20,right:0,bottom:0,left:5}}})});