Theme Assets
This commit is contained in:
1
assets/js/pages/demo.dashboard-wallet.js
Normal file
1
assets/js/pages/demo.dashboard-wallet.js
Normal file
@@ -0,0 +1 @@
|
||||
!function(a){"use strict";function t(){}t.prototype.generateData=function(){for(var t=[],e=0;e<100;e++)t.push(5e3+1e5*Math.random()+.8*e*e*e);return t},t.prototype.init=function(){this.dayDummyData=this.generateData(),this.monthDummyData=this.generateData(),this.weekDummyData=this.generateData(),this.yearDummyData=this.generateData(),this.dayBalanceData=[];for(var t=0;t<100;t++){var e=new Date;this.dayBalanceData.push([e.setDate(e.getDate()+t-100),this.dayDummyData[t]])}this.weekBalanceData=[];for(t=0;t<100;t++){e=new Date;this.weekBalanceData.push([e.setDate(e.getDate()+7*t-700),this.weekDummyData[t]])}this.monthBalanceData=[];for(t=0;t<100;t++){e=new Date;this.monthBalanceData.push([e.setDate(e.getDate()+30*t-3e3),this.monthDummyData[t]])}this.yearBalanceData=[];for(t=0;t<100;t++){e=new Date;this.yearBalanceData.push([e.setDate(e.getDate()+365*t-36500),this.yearDummyData[t]])}this.initCurrencyBTC(),this.initCurrencyCNY(),this.initCurrencyETH(),this.initDayBalance(),this.initWeekBalance(),this.initMonthBalance(),this.initYearBalance()},t.prototype.initCurrencyBTC=function(){var t=["#727cf5","#0acf97","#fa5c7c","#ffbc00"],e=a("#currency-btc-chart").data("colors"),e={chart:{type:"line",height:60,sparkline:{enabled:!0}},series:[{data:[25,33,28,35,30,40]}],stroke:{width:2,curve:"smooth"},markers:{size:0},colors:t=e?e.split(","):t,tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(t){return""}}},marker:{show:!1}}};new ApexCharts(document.querySelector("#currency-btc-chart"),e).render()},t.prototype.initCurrencyCNY=function(){var t=["#727cf5","#0acf97","#fa5c7c","#ffbc00"],e=a("#currency-cny-chart").data("colors"),e={chart:{type:"bar",height:60,sparkline:{enabled:!0}},plotOptions:{bar:{columnWidth:"60%"}},colors:t=e?e.split(","):t,series:[{data:[25,44,12,36,9,54,25,66,41,89,63]}],labels:[1,2,3,4,5,6,7,8,9,10,11],xaxis:{crosshairs:{width:1}},tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(t){return""}}},marker:{show:!1}}};new ApexCharts(document.querySelector("#currency-cny-chart"),e).render()},t.prototype.initCurrencyETH=function(){var t=["#727cf5","#0acf97","#fa5c7c","#ffbc00"],e=a("#currency-eth-chart").data("colors"),e={chart:{type:"line",height:60,sparkline:{enabled:!0}},series:[{data:[25,33,28,35,30,40]}],stroke:{width:2,curve:"smooth"},markers:{size:0},colors:t=e?e.split(","):t,tooltip:{fixed:{enabled:!1},x:{show:!1},y:{title:{formatter:function(t){return""}}},marker:{show:!1}}};new ApexCharts(document.querySelector("#currency-eth-chart"),e).render()},t.prototype.initDayBalance=function(){var t=["#6c757d"],e=a("#day-balance-chart").data("colors"),e={chart:{type:"area",height:350,toolbar:{show:!1}},colors:t=e?e.split(","):t,dataLabels:{enabled:!1},stroke:{width:1},series:[{data:this.dayBalanceData}],markers:{size:0,style:"hollow"},xaxis:{type:"datetime",tickAmount:6},yaxis:{labels:{formatter:function(t){return"$"+t}}},tooltip:{x:{format:"dd MMM yyyy"}},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:0,stops:[0,100]}}};new ApexCharts(document.querySelector("#day-balance-chart"),e).render()},t.prototype.initWeekBalance=function(){var t=["#6c757d"],e=a("#week-balance-chart").data("colors"),e={chart:{type:"area",height:350,toolbar:{show:!1}},colors:t=e?e.split(","):t,dataLabels:{enabled:!1},stroke:{width:1},series:[{data:this.weekBalanceData}],markers:{size:0,style:"hollow"},xaxis:{type:"datetime",tickAmount:6},yaxis:{labels:{formatter:function(t){return"$"+t}}},tooltip:{x:{format:"dd MMM yyyy"}},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:0,stops:[0,100]}}};new ApexCharts(document.querySelector("#week-balance-chart"),e).render()},t.prototype.initMonthBalance=function(){var t=["#6c757d"],e=a("#month-balance-chart").data("colors"),e={chart:{type:"area",height:350,toolbar:{show:!1}},colors:t=e?e.split(","):t,dataLabels:{enabled:!1},stroke:{width:1},series:[{data:this.monthBalanceData}],markers:{size:0,style:"hollow"},xaxis:{type:"datetime",tickAmount:6},yaxis:{labels:{formatter:function(t){return"$"+t}}},tooltip:{x:{format:"dd MMM yyyy"}},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:0,stops:[0,100]}}};new ApexCharts(document.querySelector("#month-balance-chart"),e).render()},t.prototype.initYearBalance=function(){var t=["#6c757d"],e=a("#year-balance-chart").data("colors"),e={chart:{type:"area",height:350,toolbar:{show:!1}},colors:t=e?e.split(","):t,dataLabels:{enabled:!1},stroke:{width:1},series:[{data:this.yearBalanceData}],markers:{size:0,style:"hollow"},xaxis:{type:"datetime",tickAmount:6},yaxis:{labels:{formatter:function(t){return"$"+t}}},tooltip:{x:{format:"dd MMM yyyy"}},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:0,stops:[0,100]}}};new ApexCharts(document.querySelector("#year-balance-chart"),e).render()},a.DashboardWallet=new t,a.DashboardWallet.Constructor=t,a.DashboardWallet.init()}(window.jQuery);
|
||||
Reference in New Issue
Block a user