123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- //[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: [91, 100, 90, 120, 155, 140, 170]
- }],
- chart: {
- height: 380,
- type: 'area',
- zoom: {
- enabled: false
- },
- },
- colors: ["#4c95dd"],
- dataLabels: {
- enabled: false
- },
- stroke: {
- curve: 'stepline',
- show: true,
- width: 5,
- },
- xaxis: {
- categories: ["Jan", "Fab", "Mar", "Apr", "May", "Jun", "July"]
- },
- 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: ["#e66430", "#4c95dd"],
- series: [{
- name: 'Customer',
- data: [152, 385, 351, 428, 350, 550, 660]
- },],
- 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 + "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: ["#4c95dd"],
- series: [{
- name: 'Order',
- data: [200, 445, 351, 258, 359, 558, 461]
- },],
- xaxis: {
- categories: ["8:00", "9:00", "10:00", "11:00", "12:00", "13:00", "14:00"],
- axisBorder: {
- show: true,
- color: '#bec7e0',
- },
- axisTicks: {
- show: true,
- color: '#bec7e0',
- },
- },
- legend: {
- show: false,
- },
- fill: {
- opacity: 1,
- type: "gradient",
- gradient: {
- shadeIntensity: 1,
- opacityFrom: 0.7,
- opacityTo: 0.9,
- stops: [0, 90, 100]
- },
- },
- 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: 20,
- responsiveClass: true,
- autoplay: true,
- dots: false,
- nav: true,
- responsive: {
- 0: {
- items: 1,
- },
- 1024: {
- items: 2,
- },
- 1600: {
- items: 3,
- },
- 2000: {
- items: 4,
- }
- }
- });
-
-
- }); // End of use strict
|