( function ( $ ) { "use strict"; // Counter Number $('.count').each(function () { $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 3000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); }); //WidgetChart 1 // Montly Swap Counter var ctx = document.getElementById( "widgetChart1" ); ctx.height = 150; var myChart = new Chart( ctx, { type: 'line', data: { labels: ['January','February','March','April','May','November','December'], type: 'line', datasets: [ { data: [2903,4353,7710,5235,170,5165,5632], label: 'Swaps', backgroundColor: 'transparent', borderColor: 'rgba(255,255,255,.55)', }, ] }, options: { maintainAspectRatio: false, legend: { display: false }, responsive: true, tooltips: { mode: 'index', titleFontSize: 12, titleFontColor: '#000', bodyFontColor: '#000', backgroundColor: '#fff', titleFontFamily: 'Montserrat', bodyFontFamily: 'Montserrat', cornerRadius: 3, intersect: false, }, scales: { xAxes: [ { gridLines: { color: 'transparent', zeroLineColor: 'transparent' }, ticks: { fontSize: 2, fontColor: 'transparent' } } ], yAxes: [ { display:false, ticks: { display: false, } } ] }, title: { display: false, }, elements: { line: { borderWidth: 1 }, point: { radius: 4, hitRadius: 10, hoverRadius: 4 } } } } ); //WidgetChart 2 //Daily Swap Counter last 7 Days var ctx = document.getElementById( "widgetChart2" ); ctx.height = 150; var myChart = new Chart( ctx, { type: 'line', data: { labels: ['2024-04-25','2024-04-26','2024-04-27','2024-04-28','2024-04-29','2024-04-30','2024-05-01'], type: 'line', datasets: [ { data: [135,184,206,106,114,194,170], label: 'Swaps', backgroundColor: 'transparent', borderColor: 'rgba(255,255,255,.55)', }, ] }, options: { maintainAspectRatio: false, legend: { display: false }, responsive: true, tooltips: { mode: 'index', titleFontSize: 12, titleFontColor: '#000', bodyFontColor: '#000', backgroundColor: '#fff', titleFontFamily: 'Montserrat', bodyFontFamily: 'Montserrat', cornerRadius: 3, intersect: false, }, scales: { xAxes: [ { gridLines: { color: 'transparent', zeroLineColor: 'transparent' }, ticks: { fontSize: 2, fontColor: 'transparent' } } ], yAxes: [ { display:false, ticks: { display: false, } } ] }, title: { display: false, }, elements: { line: { borderWidth: 1 }, point: { radius: 4, hitRadius: 10, hoverRadius: 4 } } } } ); //WidgetChart 3 // Volume Counter last 7 Days var ctx = document.getElementById( "widgetChart3" ); ctx.height = 70; var myChart = new Chart( ctx, { type: 'line', data: { labels: ['2024-04-25','2024-04-26','2024-04-27','2024-04-28','2024-04-29','2024-04-30','2024-05-01'], type: 'line', datasets: [ { data: [6463,22358,10857,1651,17290,15591,13175], label: 'Volume', backgroundColor: 'transparent', borderColor: 'rgba(255,255,255,.55)', }, ] }, options: { maintainAspectRatio: false, legend: { display: false }, responsive: true, tooltips: { mode: 'index', titleFontSize: 12, titleFontColor: '#000', bodyFontColor: '#000', backgroundColor: '#fff', titleFontFamily: 'Montserrat', bodyFontFamily: 'Montserrat', cornerRadius: 3, intersect: false, }, scales: { xAxes: [ { gridLines: { color: 'transparent', zeroLineColor: 'transparent' }, ticks: { fontSize: 2, fontColor: 'transparent' } } ], yAxes: [ { display:false, ticks: { display: false, } } ] }, title: { display: false, }, elements: { line: { borderWidth: 1 }, point: { radius: 4, hitRadius: 10, hoverRadius: 4 } } } } ); //WidgetChart 4 // KMD USD Price var ctx = document.getElementById( "widgetChart4" ); ctx.height = 70; var myChart = new Chart( ctx, { type: 'line', data: { labels: ['2024-04-25','2024-04-26','2024-04-27','2024-04-28','2024-04-29','2024-04-30'], type: 'line', datasets: [ { data: [0,0,0,0,0,0], label: 'Price', backgroundColor: 'transparent', borderColor: 'rgba(255,255,255,.55)', }, ] }, options: { maintainAspectRatio: false, legend: { display: false }, responsive: true, tooltips: { mode: 'index', titleFontSize: 12, titleFontColor: '#000', bodyFontColor: '#000', backgroundColor: '#fff', titleFontFamily: 'Montserrat', bodyFontFamily: 'Montserrat', cornerRadius: 3, intersect: false, }, scales: { xAxes: [ { gridLines: { color: 'transparent', zeroLineColor: 'transparent' }, ticks: { fontSize: 2, fontColor: 'transparent' } } ], yAxes: [ { display:false, ticks: { display: false, } } ] }, title: { display: false, }, elements: { line: { borderWidth: 1 }, point: { radius: 4, hitRadius: 10, hoverRadius: 4 } } } } ); } )( jQuery );