| Server IP : 92.204.40.98 / Your IP : 216.73.216.201 Web Server : LiteSpeed System : Linux amster.dnsfors.com 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : tmksyste ( 2190) PHP Version : 8.3.31 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/tmksyste/domains/tmksystems.in/public_html/crmapp/assets/js/pages/ |
Upload File : |
function getChartColorsArray(e){var t=document.getElementById(e);if(t){t=t.dataset.colors;if(t)return JSON.parse(t).map(e=>{var t=e.replace(/\s/g,"");return t.includes(",")?2===(e=e.split(",")).length?`rgba(${getComputedStyle(document.documentElement).getPropertyValue(e[0])}, ${e[1]})`:t:getComputedStyle(document.documentElement).getPropertyValue(t)||t});console.warn("data-colors attribute not found on: "+e)}}var areachartmini6Chart="",areachartmini7Chart="",cartChart="";function loadCharts(){(e=getChartColorsArray("mini-chart-6"))&&(t={series:[{data:[50,15,35,62,23,56,44,12,62,23,56,44,12,62,23,56,44,12,62,23,56,44,12,44,12,62,23,56,44]}],chart:{type:"bar",height:45,sparkline:{enabled:!0}},colors:e,stroke:{curve:"smooth",width:1},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},""!=areachartmini6Chart&&areachartmini6Chart.destroy(),(areachartmini6Chart=new ApexCharts(document.querySelector("#mini-chart-6"),t)).render());(e=getChartColorsArray("mini-chart-7"))&&(t={series:[{data:[50,15,20,34,23,56,65,41,15,20,34,23,56,65,41,15,20,34,23,56,65,41,15,20,34,23,56,65,41]}],chart:{type:"bar",height:45,sparkline:{enabled:!0}},colors:e,stroke:{curve:"smooth",width:1},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(e){return""}}},marker:{show:!1}}},""!=areachartmini7Chart&&areachartmini7Chart.destroy(),(areachartmini7Chart=new ApexCharts(document.querySelector("#mini-chart-7"),t)).render());var e=getChartColorsArray("chart-container");if(e){var t=document.getElementById("chart-container"),a=echarts.init(t,null,{renderer:"canvas",useDirtyRect:!1}),r={};const s=function(){let e=new Date;var t=[];let a=10;for(;a--;)t.unshift(e.toLocaleTimeString().replace(/^\D*/,"")),e=new Date(+e-2e3);return t}(),l=function(){var e=[];let t=10;for(;t--;)e.push(10-t-1);return e}(),d=function(){var e=[];let t=10;for(;t--;)e.push(Math.round(1e3*Math.random()));return e}(),c=function(){var e=[];let t=0;for(;t<10;)e.push(+(10*Math.random()+5).toFixed(0)),t++;return e}();o={chart:{borderColor:"red"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#283b56"}}},darkMode:!0,grid:{left:"0%",right:"0%",bottom:"0%",top:"10%",containLabel:!0,borderColor:"rgba(0, 0, 0, 0)"},toolbox:{show:!1,feature:{dataView:{readOnly:!1},restore:{},saveAsImage:{}}},color:e,dataZoom:{show:!1,start:0,end:100},xAxis:[{type:"category",boundaryGap:!0,data:s},{type:"category",boundaryGap:!0,data:l}],yAxis:[{type:"value",scale:!0,name:"Price",max:30,min:0,boundaryGap:[.2,.2],splitLine:{show:!0,lineStyle:{color:e[2]}}},{type:"value",scale:!0,name:"Order",max:1200,min:0,boundaryGap:[.2,.2],splitLine:{show:!0,lineStyle:{color:e[2]}}}],series:[{name:"Total Orders",type:"bar",xAxisIndex:1,yAxisIndex:1,data:d},{name:"Return Orders",type:"line",data:c}]},r.count=11,setInterval(function(){var e=(new Date).toLocaleTimeString().replace(/^\D*/,"");d.shift(),d.push(Math.round(1e3*Math.random())),c.shift(),c.push(+(10*Math.random()+5).toFixed(0)),s.shift(),s.push(e),l.shift(),l.push(r.count++),a.setOption({xAxis:[{data:s},{data:l}],series:[{data:d},{data:c}]})},2100),o&&"object"==typeof o&&a.setOption(o)}var o,n,i,t=getChartColorsArray("orderStatus"),t=(t&&(i=document.getElementById("orderStatus"),n=echarts.init(i,null,{renderer:"canvas",useDirtyRect:!1}),o={legend:{top:"bottom",textStyle:{color:"#9fa0a1"}},color:t,darkMode:"auto",toolbox:{show:!1,feature:{mark:{show:!0},dataView:{show:!0,readOnly:!1},restore:{show:!0},saveAsImage:{show:!0}}},grid:{left:"0%",right:"0%",bottom:"0%",top:"-50%",containLabel:!0},series:[{name:"Nightingale Chart",type:"pie",radius:[30,120],center:["50%","50%"],roseType:"area",itemStyle:{borderRadius:8},data:[{value:40,name:"New"},{value:49,name:"Delivered"},{value:32,name:"Cancelled"},{value:28,name:"Refund"},{value:30,name:"Pending"}]}]})&&n.setOption(o),getChartColorsArray("salesEarning"));t&&(i=document.getElementById("salesEarning"),n=echarts.init(i),o={tooltip:{trigger:"axis"},legend:{data:["Purchase","Sales Earning"],textStyle:{color:"#9fa0a1"}},darkMode:"auto",grid:{top:"15%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{show:!1,feature:{saveAsImage:{}}},color:t,xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value",splitLine:{show:!0,lineStyle:{color:e[2]}}},series:[{name:"Purchase",type:"line",step:"start",data:[120,132,101,134,90,230,210]},{name:"Sales Earning",type:"line",step:"middle",data:[220,282,201,234,290,430,410]}]})&&n.setOption(o);(i=getChartColorsArray("cartChart"))&&(t={series:[75],chart:{height:335,type:"radialBar",toolbar:{show:!0}},plotOptions:{radialBar:{startAngle:-135,endAngle:225,hollow:{margin:0,size:"70%",image:void 0,imageOffsetX:0,imageOffsetY:0,position:"front"},track:{background:i[2],strokeWidth:"67%",margin:0},dataLabels:{show:!0,name:{offsetY:-10,show:!0,fontSize:"17px"},value:{formatter:function(e){return parseInt(e)},fontSize:"36px",show:!0}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[i[1]],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},colors:i,stroke:{lineCap:"round"},labels:["Cart"]},""!=cartChart&&cartChart.destroy(),(cartChart=new ApexCharts(document.querySelector("#cartChart"),t)).render())}window.addEventListener("resize",function(){setTimeout(()=>{loadCharts()},250)}),loadCharts();var swiper=new Swiper(".sellingProduct",{slidesPerView:1,loop:!0,spaceBetween:24,autoplay:{delay:2500,disableOnInteraction:!1},pagination:{clickable:!0,el:".swiper-pagination",dynamicBullets:!0},breakpoints:{640:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:2}}});