123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- //[Dashboard Javascript]
- //Project: Riday Admin - Responsive Admin Template
- //Primary use: Used only for the main dashboard (index.html)
- $(function () {
- 'use strict';
- var bar = new ProgressBar.Circle(progressbar1, {
- color: '#e66430',
- // This has to be the same size as the maximum width to
- // prevent clipping
- strokeWidth: 30,
- trailWidth: 8,
- easing: 'easeInOut',
- duration: 1400,
- text: {
- autoStyleContainer: false
- },
- from: { color: '#e66430', width: 8 },
- to: { color: '#e66430', width: 8 },
- // Set default step function for all animate calls
- step: function(state, circle) {
- circle.path.setAttribute('stroke', state.color);
- circle.path.setAttribute('stroke-width', state.width);
- var value = Math.round(circle.value() * 150);
- if (value === 0) {
- circle.setText('');
- } else {
- circle.setText("<i class='icon-Dinner1'><span class='path1'></span><span class='path2'></span></i>");
- }
- }
- });
- bar.text.style.fontSize = '1.5rem';
- bar.animate(0.78);
-
- var bar = new ProgressBar.Circle(progressbar2, {
- color: '#e66430',
- // This has to be the same size as the maximum width to
- // prevent clipping
- strokeWidth: 30,
- trailWidth: 8,
- easing: 'easeInOut',
- duration: 1400,
- text: {
- autoStyleContainer: false
- },
- from: { color: '#e66430', width: 8 },
- to: { color: '#e66430', width: 8 },
- // Set default step function for all animate calls
- step: function(state, circle) {
- circle.path.setAttribute('stroke', state.color);
- circle.path.setAttribute('stroke-width', state.width);
- var value = Math.round(circle.value() * 150);
- if (value === 0) {
- circle.setText('');
- } else {
- circle.setText("<i class='icon-Dollar'><span class='path1'></span><span class='path2'></span><span class='path3'></span></i>");
- }
- }
- });
- bar.text.style.fontSize = '1.5rem';
- bar.animate(0.5);
-
-
- var bar = new ProgressBar.Circle(progressbar3, {
- color: '#e66430',
- // This has to be the same size as the maximum width to
- // prevent clipping
- strokeWidth: 30,
- trailWidth: 8,
- easing: 'easeInOut',
- duration: 1400,
- text: {
- autoStyleContainer: false
- },
- from: { color: '#e66430', width: 8 },
- to: { color: '#e66430', width: 8 },
- // Set default step function for all animate calls
- step: function(state, circle) {
- circle.path.setAttribute('stroke', state.color);
- circle.path.setAttribute('stroke-width', state.width);
- var value = Math.round(circle.value() * 150);
- if (value === 0) {
- circle.setText('');
- } else {
- circle.setText("<i class='icon-Clipboard'><span class='path1'></span><span class='path2'></span><span class='path3'></span><span class='path4'></span></i>");
- }
- }
- });
- bar.text.style.fontSize = '1.5rem';
- bar.animate(0.4);
-
-
-
- var bar = new ProgressBar.Circle(progressbar4, {
- color: '#e66430',
- // This has to be the same size as the maximum width to
- // prevent clipping
- strokeWidth: 30,
- trailWidth: 8,
- easing: 'easeInOut',
- duration: 1400,
- text: {
- autoStyleContainer: false
- },
- from: { color: '#e66430', width: 8 },
- to: { color: '#e66430', width: 8 },
- // Set default step function for all animate calls
- step: function(state, circle) {
- circle.path.setAttribute('stroke', state.color);
- circle.path.setAttribute('stroke-width', state.width);
- var value = Math.round(circle.value() * 150);
- if (value === 0) {
- circle.setText('');
- } else {
- circle.setText("<i class='icon-User'><span class='path1'></span><span class='path2'></span></i>");
- }
- }
- });
- bar.text.style.fontSize = '1.5rem';
- bar.animate(0.3);
-
-
- var options = {
- series: [{
- name: 'Revenue',
- data: [31, 50, 28, 70, 45, 90, 140]
- }],
- chart: {
- height: 178,
- type: 'area',
- zoom: {
- enabled: false
- },
- },
- colors: ["#4c95dd"],
- dataLabels: {
- enabled: false
- },
- stroke: {
- curve: 'smooth'
- },
- xaxis: {
- categories: ["Mon", "Tue", "Wed", "Thu", "Fri", "Set", "Sun"]
- },
- tooltip: {
- y: {
- formatter: function (val) {
- return "$" + val + " thousands"
- }
- },
- },
- };
- var chart = new ApexCharts(document.querySelector("#chart"), options);
- chart.render();
-
-
- var options = {
- chart: {
- height: 325,
- type: 'bar',
- toolbar: {
- show: false
- },
- },
- plotOptions: {
- bar: {
- horizontal: false,
- endingShape: 'rounded',
- columnWidth: '40%',
- distributed: true,
- },
- },
- dataLabels: {
- enabled: false
- },
- stroke: {
- show: true,
- width: 5,
- colors: ['transparent']
- },
- colors: ["#ffb500", "#4c95dd"],
- series: [{
- name: 'Customer',
- data: [20, 45, 51, 58, 59, 58, 61, 30, 35, 61, 48, 39, 68, 41, 41]
- },],
- xaxis: {
- categories: ["1", "2", "3", "4", "5", "7", "8", "9", "10", "11", "12", "13", "14", "15"],
- axisBorder: {
- show: true,
- color: '#bec7e0',
- },
- axisTicks: {
- show: true,
- color: '#bec7e0',
- },
- },
- legend: {
- show: false,
- },
- fill: {
- opacity: 1
- },
- grid: {
- row: {
- colors: ['transparent', 'transparent'], // takes an array which will be repeated on columns
- opacity: 0.2
- },
- borderColor: '#f1f3fa'
- },
- tooltip: {
- y: {
- formatter: function (val) {
- return val + "k"
- }
- }
- }
- }
- var chart = new ApexCharts(
- document.querySelector("#yearly-comparison"),
- options
- );
- chart.render();
-
-
- var options = {
- chart: {
- height: 325,
- type: 'area',
- toolbar: {
- show: false
- },
- },
- plotOptions: {
- bar: {
- horizontal: false,
- endingShape: 'rounded',
- columnWidth: '40%',
- },
- },
- dataLabels: {
- enabled: false
- },
- stroke: {
- show: true,
- width: 5,
-
- },
- colors: ["#e66430"],
- series: [{
- name: 'Order',
- data: [200, 445, 351, 258, 359, 558, 461]
- },],
- xaxis: {
- categories: ["Mon", "Tue", "Wed", "Thu", "Fri", "Set", "Sun"],
- axisBorder: {
- show: true,
- color: '#bec7e0',
- },
- axisTicks: {
- show: true,
- color: '#bec7e0',
- },
- },
- legend: {
- show: false,
- },
- fill: {
- opacity: 1
- },
- grid: {
- row: {
- colors: ['transparent', 'transparent'], // takes an array which will be repeated on columns
- opacity: 0.2
- },
- borderColor: '#f1f3fa'
- },
- tooltip: {
- y: {
- formatter: function (val) {
- return val + " total"
- }
- }
- }
- }
- var chart = new ApexCharts(
- document.querySelector("#order-overview"),
- options
- );
- chart.render();
-
-
-
-
- $('.owl-carousel').owlCarousel({
- loop: true,
- margin: 0,
- responsiveClass: true,
- autoplay: true,
- dots: false,
- nav: false,
- responsive: {
- 0: {
- items: 1,
- },
- 768: {
- items: 2,
- },
- 1024: {
- items: 3,
- },
- 1600: {
- items: 4,
- },
- 2000: {
- items: 4,
- }
- }
- });
-
-
- }); // End of use strict
|