lavkach3
1document.addEventListener("DOMContentLoaded", function () {2"use strict";3var card1 = {4series: [5{6name: "Weekly Sales",7data: [0, 3, 1, 2, 8, 1, 5, 1],8},9],10chart: {11height: 75,12type: "area",13fontFamily: "inherit",14zoom: {15enabled: false,16},17toolbar: {18show: false,19},20sparkline: {21enabled: true,22},23},24dataLabels: {25enabled: false,26},27colors: ["#3699ff"],28stroke: {29curve: "smooth",30width: 2,31},32fill: {33type: "solid",34opacity: 0.2,35},36grid: {37show: false,38},39xaxis: {40show: false,41},42yaxis: {43show: false,44},45tooltip: {46theme: "dark",47},48};49
50var chart1 = new ApexCharts(document.querySelector(".earnings-month"), card1);51chart1.render();52
53// 254var card2 = {55series: [56{57name: "Social marketing",58data: [0, 3, 1, 2, 8, 1, 5, 1],59},60],61chart: {62height: 75,63type: "area",64fontFamily: "inherit",65zoom: {66enabled: false,67},68toolbar: {69show: false,70},71sparkline: {72enabled: true,73},74},75dataLabels: {76enabled: false,77},78colors: ["#ee9d01"],79stroke: {80curve: "smooth",81width: 2,82},83fill: {84type: "solid",85opacity: 0.2,86},87grid: {88show: false,89},90xaxis: {91show: false,92},93yaxis: {94show: false,95},96tooltip: {97theme: "dark",98},99};100
101var chart2 = new ApexCharts(102document.querySelector(".earnings-month2"),103card2
104);105chart2.render();106
107// 3108var card3 = {109series: [110{111name: "Yearly Sales",112data: [0, 3, 1, 2, 8, 1, 5, 1],113},114],115chart: {116height: 75,117type: "area",118fontFamily: "inherit",119zoom: {120enabled: false,121},122toolbar: {123show: false,124},125sparkline: {126enabled: true,127},128},129dataLabels: {130enabled: false,131},132colors: ["#f64e60"],133stroke: {134curve: "smooth",135width: 2,136},137fill: {138type: "solid",139opacity: 0.2,140},141grid: {142show: false,143},144xaxis: {145show: false,146},147yaxis: {148show: false,149},150tooltip: {151theme: "dark",152},153};154
155var chart3 = new ApexCharts(156document.querySelector(".earnings-month3"),157card3
158);159chart3.render();160});161