You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
15 KiB
1 line
15 KiB
5 years ago
|
function generateDayWiseTimeSeries(e,t,a){for(var r=0,o=[];r<t;){var i=e,n=Math.floor(Math.random()*(a.max-a.min+1))+a.min;o.push([i,n]),e+=864e5,r++}return o}function generateData(e,t,a){for(var r=0,o=[];r<t;){var i=Math.floor(750*Math.random())+1,n=Math.floor(Math.random()*(a.max-a.min+1))+a.min,s=Math.floor(61*Math.random())+15;o.push([i,n,s]),864e5,r++}return o}function generateData1(e,t,a){for(var r=0,o=[];r<t;){var i=Math.floor(Math.random()*(a.max-a.min+1))+a.min,n=Math.floor(61*Math.random())+15;o.push([e,i,n]),e+=864e5,r++}return o}Apex={chart:{parentHeightOffset:0,toolbar:{show:!1}},grid:{padding:{left:0,right:0}},colors:["#5369f8","#43d39e","#f77e53","#1ce1ac","#25c2e3","#ffbe0b"],tooltip:{theme:"dark",x:{show:!1}},dataLabels:{enabled:!1},xaxis:{axisBorder:{color:"#d6ddea"},axisTicks:{color:"#d6ddea"}},yaxis:{labels:{offsetX:-10}}},function(e){"use strict";function t(){}t.prototype.initCharts=function(){var e={chart:{height:380,type:"line",zoom:{enabled:!1},toolbar:{show:!1}},dataLabels:{enabled:!0},stroke:{width:[3,3],curve:"smooth"},series:[{name:"High - 2018",data:[28,29,33,36,32,32,33]},{name:"Low - 2018",data:[12,11,14,18,17,13,13]}],grid:{row:{colors:["transparent","transparent"],opacity:.2},borderColor:"#e9ecef"},markers:{style:"inverted",size:6},xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul"],title:{text:"Month"},axisBorder:{color:"#d6ddea"},axisTicks:{color:"#d6ddea"}},yaxis:{title:{text:"Temperature"},min:5,max:40},legend:{position:"top",horizontalAlign:"right",floating:!0,offsetY:-25,offsetX:-5},responsive:[{breakpoint:600,options:{chart:{toolbar:{show:!1}},legend:{show:!1}}}]};new ApexCharts(document.querySelector("#apex-line-1"),e).render();e={chart:{height:380,type:"line",shadow:{enabled:!1,color:"#bbb",top:3,left:2,blur:3,opacity:1}},stroke:{width:5,curve:"smooth"},series:[{name:"Likes",data:[4,3,10,9,29,19,22,9,12,7,19,5,13,9,17,2,7,5]}],xaxis:{type:"datetime",categories:["1/11/2000","2/11/2000","3/11/2000","4/11/2000","5/11/2000","6/11/2000","7/11/2000","8/11/2000","9/11/2000","10/11/2000","11/11/2000","12/11/2000","1/11/2001","2/11/2001","3/11/2001","4/11/2001","5/11/2001","6/11/2001"]},title:{text:"Social Media",align:"left",style:{fontSize:"14px",color:"#666"}},fill:{type:"gradient",gradient:{shade:"dark",gradientToColors:["#43d39e"],shadeIntensity:1,type:"vertical",opacityFrom:1,opacityTo:1,stops:[0,100,100,100]}},markers:{size:4,opacity:.9,colors:["#50a5f1"],strokeColor:"#fff",strokeWidth:2,style:"inverted",hover:{size:7}},yaxis:{min:-10,max:40,title:{text:"Engagement"}},grid:{row:{colors:["transparent","transparent"],opacity:.2},borderColor:"#185a9d"},responsive:[{breakpoint:600,options:{chart:{toolbar:{show:!1}},legend:{show:!1}}}]};new ApexCharts(document.querySelector("#apex-line-2"),e).render();e={chart:{height:380,type:"area",stacked:!0},dataLabels:{enabled:!1},stroke:{width:[3,3,3],curve:"smooth"},series:[{name:"South",data:generateDayWiseTimeSeries(new Date("11 Feb 2019 GMT").getTime(),20,{min:10,max:60})},{name:"North",data:generateDayWiseTimeSeries(new Date("11 Feb 2019 GMT").getTime(),20,{min:10,max:20})},{name:"Central",data:generateDayWiseTimeSeries(new Date("11 Feb 2019 GMT").getTime(),20,{min:10,max:15})}],legend:{position:"top",horizontalAlign:"left"},xaxis:{type:"datetime"}};new ApexCharts(document.querySelector("#apex-area"),e).render();e={chart:{height:380,type:"bar",toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,endingShape:"rounded",columnWidth:"55%"}},dataLabels:{enabled:!1},stroke:{show:!0,width:2,colors:["transparent"]},series:[{name:"Net Profit",data:[44,55,57,56,61,58,63,60,66]},{name:"Revenue",data:[76,85,101,98,87,105,91,114,94]},{name:"Free Cash Flow",data:[35,41,36,26,45,48,52,53,41]}],xaxis:{categories:["Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"]},legend:{offsetY:-10},yaxis:{title:{text:"$ (thousands)"}},grid:{row:{colors:["transparent","transparent"],opacity:.2},borderColor:"#f1f3fa"},tooltip:{y:{formatter:function(e){return"$ "+e+" thousands"}}}};new ApexCharts(document.querySelector("#apex-column-1"),e).render();e={chart:{hei
|