Raffales-LMS/public/newtemplate/js/charts/nft-chart.js

1 line
8.6 KiB
JavaScript
Raw Normal View History

2024-04-16 09:58:24 +00:00
!function(NioApp){"use strict";let totalRevenueChart={labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],legend:!1,lineTension:.4,yAxis:!1,xAxis:!1,datasets:[{label:"Revenue",color:NioApp.Colors.primary,backgroundGradient:NioApp.Colors.primary,borderWidth:2,pointBorderColor:"transparent",pointBackgroundColor:"transparent",pointHoverBackgroundColor:NioApp.Colors.primary,data:[420,460,295,505,288,699,667,740,655,967,837,1450]}]},estimatedChart={labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],legend:!1,lineTension:.4,yAxis:!1,xAxis:!1,datasets:[{label:"Estimated",color:NioApp.Colors.yellow,backgroundGradient:NioApp.Colors.yellow,borderWidth:2,pointBorderColor:"transparent",pointBackgroundColor:"transparent",pointHoverBackgroundColor:NioApp.Colors.yellow,data:[420,460,295,305,288,599,667,740,655,967,837,1450]}]},marketplaceChart={labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],legend:!1,lineTension:.4,ticksValue:"k",ticksColor:"#9CA3AF",ticksFontSize:11,ticksFontWeight:100,gridBorderDash:[8,4],gridColorX:NioApp.Colors.white,gridColorY:NioApp.Colors.gray100,gridBorderColorX:NioApp.Colors.gray100,gridBorderColorY:NioApp.Colors.white,datasets:[{borderWidth:2,color:NioApp.Colors.yellow,backgroundGradient:NioApp.Colors.yellow,pointBorderColor:NioApp.Colors.white,pointBackgroundColor:NioApp.Colors.yellow,pointHoverBackgroundColor:NioApp.Colors.yellow,label:"Total Atwork",data:[0,15,10,28,20,38,30,22,30,12,38,30]},{borderWidth:2,backgroundGradient:NioApp.Colors.success,pointBorderColor:NioApp.Colors.white,pointBackgroundColor:NioApp.Colors.success,color:NioApp.Colors.success,pointHoverBackgroundColor:NioApp.Colors.success,label:"Total Auction",data:[30,24,49,36,40,49,39,38,59,50,56,66]},{borderWidth:2,pointBorderColor:NioApp.Colors.white,pointBackgroundColor:NioApp.Colors.pink,color:NioApp.Colors.pink,pointHoverBackgroundColor:NioApp.Colors.pink,label:"Total Artist",borderDash:[8,4],data:[44,34,39,68,29,61,10,48,45,70,46,55]}]},popularityChart={labels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],legend:!1,barPercentage:.7,categoryPercentage:.6,ticksValue:"k",ticksColor:"#9CA3AF",ticksFontSize:11,ticksFontWeight:100,gridBorderDash:[8,4],gridColorX:NioApp.Colors.white,gridColorY:NioApp.Colors.gray100,gridBorderColorX:NioApp.Colors.gray100,gridBorderColorY:NioApp.Colors.white,datasets:[{borderRadius:10,borderWidth:1,color:NioApp.Colors.success,background:NioApp.Colors.success,border:1,label:"Like",data:[110,80,125,55,95,75,90,110,80,125,55,95]},{borderRadius:10,borderWidth:1,color:NioApp.Colors.info,background:NioApp.Colors.info,border:1,label:"Share",data:[75,90,110,80,125,55,95,75,90,110,80,125]}]};NioApp.Chart={tooltip:{rtl:NioApp.State.isRTL,textDirection:NioApp.State.isRTL?"rtl":"ltr",padding:12,boxWidth:10,boxHeight:10,boxPadding:6,backgroundColor:NioApp.Colors.gray100,titleColor:NioApp.Colors.gray900,bodyColor:NioApp.Colors.bodyColor},legend:{rtl:NioApp.State.isRTL,position:"top",labels:{boxWidth:12,boxHeight:12,fontColor:NioApp.Colors.bodyColor,padding:10}},bar:function(selector,data){let elm=document.querySelectorAll(selector);elm.forEach(item=>{let chartId=item.id,setData=void 0===data?eval(chartId):data,chartLegend=void 0!==setData.legend&&setData.legend,chartStacked=void 0!==setData.stacked&&setData.stacked,chartxAxis=void 0===setData.xAxis||setData.xAxis,chartyAxis=void 0===setData.yAxis||setData.yAxis,chartTicksColor=setData.ticksColor,chartTicksFontSize=setData.ticksFontSize,chartTicksFontWeight=setData.ticksFontWeight,chartMaxTicksLimit=setData.maxTicksLimit,chartTicksValue=void 0!==setData.ticksValue&&setData.ticksValue,chartGridColorX=setData.gridColorX,chartGridColorY=setData.gridColorY,chartGridBorderColorX=setData.gridBorderColorX,chartGridBorderColorY=setData.gridBorderColorY,chartGridBorderDash=setData.gridBorderDash,chartBarPercentage=void 0===setData.barPercentage?.6:setData.barPercentage,chartCategoryPercentage=void 0===setData.categoryPercentage?.7:setData.categoryPercentage,chartData