dikplhd/public/assets/js/pages/dashboard.min.js

1 line
5.2 KiB
JavaScript

window.Apex={chart:{parentHeightOffset:0,toolbar:{show:!1}},grid:{padding:{left:0,right:0}},colors:["#3e60d5","#47ad77","#fa5c7c","#ffbc00"]};var colors=["#3e60d5","#47ad77"],dataColors=document.querySelector("#widget-customers").dataset.colors,options={chart:{height:72,width:72,type:"donut"},legend:{show:!1},plotOptions:{pie:{donut:{size:"80%"}}},stroke:{colors:["transparent"]},series:[58,42],dataLabels:{enabled:!1},colors:colors=dataColors?dataColors.split(","):colors},chart=new ApexCharts(document.querySelector("#widget-customers"),options),colors=(chart.render(),["#3e60d5","#47ad77"]),options={chart:{height:72,width:72,type:"donut"},legend:{show:!1},stroke:{colors:["transparent"]},plotOptions:{pie:{donut:{size:"80%"}}},series:[34,66],dataLabels:{enabled:!1},colors:colors=(dataColors=document.querySelector("#widget-orders").dataset.colors)?dataColors.split(","):colors},colors=((chart=new ApexCharts(document.querySelector("#widget-orders"),options)).render(),["#3e60d5","#47ad77"]),options={chart:{height:72,width:72,type:"donut"},legend:{show:!1},stroke:{colors:["transparent"]},plotOptions:{pie:{donut:{size:"80%"}}},series:[87,13],dataLabels:{enabled:!1},colors:colors=(dataColors=document.querySelector("#widget-revenue").dataset.colors)?dataColors.split(","):colors},colors=((chart=new ApexCharts(document.querySelector("#widget-revenue"),options)).render(),["#3e60d5","#47ad77"]),options={chart:{height:72,width:72,type:"donut"},legend:{show:!1},stroke:{colors:["transparent"]},plotOptions:{pie:{donut:{size:"80%"}}},series:[45,55],dataLabels:{enabled:!1},colors:colors=(dataColors=document.querySelector("#widget-growth").dataset.colors)?dataColors.split(","):colors},colors=((chart=new ApexCharts(document.querySelector("#widget-growth"),options)).render(),["#3e60d5","#47ad77"]),options={chart:{height:72,width:72,type:"donut"},legend:{show:!1},stroke:{colors:["transparent"]},plotOptions:{pie:{donut:{size:"80%"}}},series:[23,68],dataLabels:{enabled:!1},colors:colors=(dataColors=document.querySelector("#widget-conversation").dataset.colors)?dataColors.split(","):colors},colors=((chart=new ApexCharts(document.querySelector("#widget-conversation"),options)).render(),["#3e60d5","#47ad77","#fa5c7c","#ffbc00"]),options={series:[{name:"Revenue",type:"column",data:[440,505,414,671,227,413,201,352,752,320,257,160]},{name:"Sales",type:"line",data:[23,42,35,27,43,22,17,31,22,22,12,16]}],chart:{height:374,type:"line",offsetY:10},stroke:{width:[2,3]},plotOptions:{bar:{columnWidth:"50%"}},colors:colors=(dataColors=document.querySelector("#revenue-chart").dataset.colors)?dataColors.split(","):colors,dataLabels:{enabled:!0,enabledOnSeries:[1]},labels:["01 Jan 2001","02 Jan 2001","03 Jan 2001","04 Jan 2001","05 Jan 2001","06 Jan 2001","07 Jan 2001","08 Jan 2001","09 Jan 2001","10 Jan 2001","11 Jan 2001","12 Jan 2001"],xaxis:{type:"datetime"},legend:{offsetY:7},grid:{padding:{bottom:20}},fill:{type:"gradient",gradient:{shade:"light",type:"horizontal",shadeIntensity:.25,gradientToColors:void 0,inverseColors:!0,opacityFrom:.75,opacityTo:.75,stops:[0,0,0]}},yaxis:[{title:{text:"Net Revenue"}},{opposite:!0,title:{text:"Number of Sales"}}]},colors=((chart=new ApexCharts(document.querySelector("#revenue-chart"),options)).render(),["#3e60d5","#47ad77","#fa5c7c","#ffbc00"]),options={chart:{height:286,type:"radialBar"},plotOptions:{radialBar:{startAngle:-135,endAngle:135,dataLabels:{name:{fontSize:"14px",color:void 0,offsetY:100},value:{offsetY:55,fontSize:"24px",color:void 0,formatter:function(e){return e+"%"}}},track:{background:"rgba(170,184,197, 0.2)",margin:0}}},fill:{gradient:{enabled:!0,shade:"dark",shadeIntensity:.2,inverseColors:!1,opacityFrom:1,opacityTo:1,stops:[0,50,65,91]}},stroke:{dashArray:4},colors:colors=(dataColors=document.querySelector("#average-sales").dataset.colors)?dataColors.split(","):colors,series:[67],labels:["Returning Customer"],responsive:[{breakpoint:380,options:{chart:{height:180}}}],grid:{padding:{top:0,right:0,bottom:0,left:0}}},colors=((chart=new ApexCharts(document.querySelector("#average-sales"),options)).render(),["#3e60d5","#47ad77","#fa5c7c","#ffbc00"]),options={chart:{height:320,type:"bar"},plotOptions:{bar:{horizontal:!0}},colors:colors=(dataColors=document.querySelector("#country-chart").dataset.colors)?dataColors.split(","):colors,dataLabels:{enabled:!1},series:[{name:"Orders",data:[90,75,60,50,45,36,28,20,15,12]}],xaxis:{categories:["India","China","United States","Japan","France","Italy","Netherlands","United Kingdom","Canada","South Korea"],axisBorder:{show:!1},labels:{formatter:function(e){return e+"%"}}},grid:{strokeDashArray:[5]}};(chart=new ApexCharts(document.querySelector("#country-chart"),options)).render();const map=new jsVectorMap({map:"world",selector:"#world-map-markers",zoomOnScroll:!1,zoomButtons:!0,markersSelectable:!0,markers:[{name:"Greenland",coords:[72,-42]},{name:"Canada",coords:[56.1304,-106.3468]},{name:"Brazil",coords:[-14.235,-51.9253]},{name:"Egypt",coords:[26.8206,30.8025]},{name:"Russia",coords:[61,105]},{name:"China",coords:[35.8617,104.1954]},{name:"United States",coords:[37.0902,-95.7129]},{name:"Norway",coords:[60.472024,8.468946]},{name:"Ukraine",coords:[48.379433,31.16558]}],markerStyle:{initial:{fill:"#3e60d5"},selected:{fill:"#3e60d56e"}},labels:{markers:{render:e=>e.name}}});