lavkach3
1document.addEventListener("DOMContentLoaded", function () {2// =====================================3// widgest-chart-14// =====================================5var options = {6chart: {7id: "widgest-chart-1",8type: "area",9height: 90,10sparkline: {11enabled: true,12},13group: "widgest-chart-1",14fontFamily: "inherit",15foreColor: "#adb0bb",16},17series: [18{19name: "",20color: "var(--bs-primary)",21data: [0, 150, 110, 240, 200, 200, 300, 200],22},23],24stroke: {25curve: "smooth",26width: 2,27},28
29fill: {30type: "gradient",31gradient: {32shadeIntensity: 0,33inverseColors: false,34opacityFrom: 0.2,35opacityTo: 0,36stops: [100],37},38},39
40markers: {41size: 0,42},43tooltip: {44theme: "dark",45fixed: {46enabled: true,47position: "right",48},49x: {50show: false,51},52},53};54new ApexCharts(document.querySelector("#widgest-chart-1"), options).render();55
56// =====================================57// widgest-chart-258// =====================================59var options = {60series: [61{62name: "",63data: [20, 15, 30, 25, 10, 18, 20, 15, 12, 10],64},65],66
67chart: {68toolbar: {69show: false,70},71height: 80,72type: "bar",73sparkline: {74enabled: true,75},76fontFamily: "inherit",77foreColor: "#adb0bb",78},79colors: [80"var(--bs-secondary-bg-subtle)",81"var(--bs-secondary-bg-subtle)",82"var(--bs-secondary)",83"var(--bs-secondary-bg-subtle)",84"var(--bs-secondary-bg-subtle)",85"var(--bs-secondary-bg-subtle)",86"var(--bs-secondary-bg-subtle)",87],88plotOptions: {89bar: {90borderRadius: 3,91columnWidth: "48%",92distributed: true,93endingShape: "rounded",94},95},96
97dataLabels: {98enabled: false,99},100legend: {101show: false,102},103grid: {104yaxis: {105lines: {106show: false,107},108},109},110xaxis: {111axisBorder: {112show: false,113},114labels: {115show: false,116},117axisTicks: {118show: false,119},120},121yaxis: {122labels: {123show: false,124},125},126tooltip: {127theme: "dark",128},129};130
131var chart = new ApexCharts(132document.querySelector("#widgest-chart-2"),133options
134);135chart.render();136
137// =====================================138// widgest-chart-3139// =====================================140var options = {141chart: {142id: "widgest-chart-3",143type: "area",144height: 90,145sparkline: {146enabled: true,147},148group: "sparklines",149fontFamily: "inherit",150foreColor: "#adb0bb",151},152series: [153{154name: "",155color: "var(--bs-primary)",156data: [0, 3, 1, 2, 8, 1, 5, 1],157},158],159stroke: {160curve: "smooth",161width: 2,162},163fill: {164type: "gradient",165gradient: {166shadeIntensity: 0,167inverseColors: false,168opacityFrom: 0.2,169opacityTo: 0,170stops: [100],171},172},173
174markers: {175size: 0,176},177tooltip: {178theme: "dark",179fixed: {180enabled: true,181position: "right",182},183x: {184show: false,185},186},187};188new ApexCharts(document.querySelector("#widgest-chart-3"), options).render();189
190// =====================================191// widgest-chart-4192// =====================================193var options = {194series: [195{196name: "",197data: [4, 10, 9, 7, 9, 10, 11, 8, 10, 12, 9],198},199],200
201chart: {202toolbar: {203show: false,204},205height: 55,206type: "bar",207sparkline: {208enabled: true,209},210fontFamily: "inherit",211foreColor: "#adb0bb",212},213colors: [214"var(--bs-secondary)",215"var(--bs-secondary)",216"var(--bs-secondary)",217"var(--bs-secondary)",218"var(--bs-secondary)",219"var(--bs-secondary)",220"var(--bs-secondary)",221"var(--bs-secondary)",222"var(--bs-secondary)",223],224plotOptions: {225bar: {226borderRadius: 3,227columnWidth: "45%",228distributed: true,229endingShape: "rounded",230},231},232
233dataLabels: {234enabled: false,235},236legend: {237show: false,238},239grid: {240yaxis: {241lines: {242show: false,243},244},245},246xaxis: {247axisBorder: {248show: false,249},250labels: {251show: false,252},253axisTicks: {254show: false,255},256},257yaxis: {258labels: {259show: false,260},261},262tooltip: {263theme: "dark",264},265};266
267var chart = new ApexCharts(268document.querySelector("#widgest-chart-4"),269options
270);271chart.render();272
273// =====================================274// widgest-chart-5275// =====================================276var options = {277series: [278{279name: "",280data: [2.5, 3.7, 3.2, 2.6, 1.9, 2.5],281},282{283name: "",284data: [-2.8, -1.1, -3.2, -1.5, -1.9, -2.8],285},286],287chart: {288toolbar: {289show: false,290},291sparkline: {292enabled: true,293},294type: "bar",295fontFamily: "inherit",296foreColor: "#adb0bb",297height: 200,298stacked: true,299},300colors: ["var(--bs-primary)", "var(--bs-primary)"],301plotOptions: {302bar: {303horizontal: false,304barHeight: "60%",305columnWidth: "20%",306borderRadius: [5],307borderRadiusApplication: "end",308borderRadiusWhenStacked: "all",309},310},311stroke: {312show: false,313},314dataLabels: {315enabled: false,316},317legend: {318show: false,319},320grid: {321show: false,322padding: {323top: 0,324right: 0,325bottom: 0,326left: 0,327},328},329yaxis: {330min: -5,331max: 5,332tickAmount: 4,333},334xaxis: {335categories: ["Jan", "Feb", "Mar", "Apr", "May"],336axisTicks: {337show: false,338},339},340tooltip: {341theme: "dark",342},343};344
345var chart = new ApexCharts(346document.querySelector("#widgest-chart-5"),347options
348);349chart.render();350
351// =====================================352// widgest-chart-6353// =====================================354var options = {355series: [356{357name: "",358data: [2.5, 3.7, 3.2, 2.6, 1.9, 2.5],359},360{361name: "",362data: [-2.8, -1.1, -3.2, -1.5, -1.9, -2.8],363},364],365chart: {366toolbar: {367show: false,368},369sparkline: {370enabled: true,371},372type: "bar",373fontFamily: "inherit",374foreColor: "#adb0bb",375height: 200,376stacked: true,377},378colors: ["var(--bs-secondary)", "var(--bs-secondary)"],379plotOptions: {380bar: {381horizontal: false,382barHeight: "60%",383columnWidth: "20%",384borderRadius: [5],385borderRadiusApplication: "end",386borderRadiusWhenStacked: "all",387},388},389stroke: {390show: false,391},392dataLabels: {393enabled: false,394},395legend: {396show: false,397},398grid: {399show: false,400padding: {401top: 0,402right: 0,403bottom: 0,404left: 0,405},406},407yaxis: {408min: -5,409max: 5,410tickAmount: 4,411},412xaxis: {413categories: ["Jan", "Feb", "Mar", "Apr", "May"],414axisTicks: {415show: false,416},417},418tooltip: {419theme: "dark",420},421};422
423var chart = new ApexCharts(424document.querySelector("#widgest-chart-6"),425options
426);427chart.render();428
429// =====================================430// Current Year431// =====================================432var options = {433color: "#adb5bd",434series: [55, 55, 55],435labels: ["Income", "Current", "Expance"],436chart: {437type: "donut",438fontFamily: "inherit",439foreColor: "#adb0bb",440},441plotOptions: {442pie: {443donut: {444size: "89%",445background: "transparent",446labels: {447show: true,448name: {449show: true,450offsetY: 7,451},452value: {453show: false,454},455total: {456show: true,457color: "#5A6A85",458fontSize: "20px",459fontWeight: "600",460label: "$98,260",461},462},463},464},465},466
467dataLabels: {468enabled: false,469},470stroke: {471show: false,472},473legend: {474show: false,475},476colors: ["var(--bs-primary)", "#EAEFF4", "var(--bs-secondary)"],477
478tooltip: {479theme: "dark",480fillSeriesColor: false,481},482};483
484var chart = new ApexCharts(document.querySelector("#current-year"), options);485chart.render();486
487// =====================================488// Breakup489// =====================================490var options = {491color: "#adb5bd",492series: [38, 40, 25],493labels: ["2022", "2021", "2020"],494chart: {495width: 180,496type: "donut",497fontFamily: "inherit",498foreColor: "#adb0bb",499},500plotOptions: {501pie: {502startAngle: 0,503endAngle: 360,504donut: {505size: "75%",506},507},508},509stroke: {510show: false,511},512
513dataLabels: {514enabled: false,515},516
517legend: {518show: false,519},520colors: ["var(--bs-primary)", "#EAEFF4", "#F9F9FD"],521
522responsive: [523{524breakpoint: 991,525options: {526chart: {527width: 120,528},529},530},531],532tooltip: {533theme: "dark",534fillSeriesColor: false,535},536};537
538var chart = new ApexCharts(document.querySelector("#breakup"), options);539chart.render();540
541// =====================================542// monthly-earning543// =====================================544var options = {545chart: {546id: "monthly-earning",547type: "area",548height: 70,549sparkline: {550enabled: true,551},552group: "monthly-earning",553fontFamily: "inherit",554foreColor: "#adb0bb",555},556series: [557{558name: "Monthly Earnings",559color: "var(--bs-primary)",560data: [25, 66, 20, 40, 12, 58, 20],561},562],563stroke: {564curve: "smooth",565width: 2,566},567fill: {568type: "gradient",569gradient: {570shadeIntensity: 0,571inverseColors: false,572opacityFrom: 0.12,573opacityTo: 0,574stops: [100],575},576},577
578markers: {579size: 0,580},581tooltip: {582theme: "dark",583fixed: {584enabled: true,585position: "right",586},587x: {588show: false,589},590},591};592new ApexCharts(document.querySelector("#monthly-earning"), options).render();593
594// =====================================595// Most Visited596// =====================================597var options = {598series: [599{600name: "San Francisco",601data: [44, 55, 41, 67, 22, 43],602},603{604name: "Diego",605data: [13, 23, 20, 8, 13, 27],606},607],608chart: {609height: 265,610type: "bar",611fontFamily: "inherit",612foreColor: "#adb0bb",613toolbar: {614show: false,615},616stacked: true,617},618
619colors: ["var(--bs-primary)", "var(--bs-secondary)"],620
621plotOptions: {622bar: {623borderRadius: [6],624horizontal: false,625barHeight: "60%",626columnWidth: "40%",627borderRadiusApplication: "end",628borderRadiusWhenStacked: "all",629},630},631stroke: {632show: false,633},634
635dataLabels: {636enabled: false,637},638
639legend: {640show: false,641},642
643grid: {644show: false,645padding: {646top: 0,647right: 0,648bottom: 0,649left: 0,650},651},652
653yaxis: {654tickAmount: 4,655},656
657xaxis: {658categories: ["01", "02", "03", "04", "05", "06"],659axisTicks: {660show: false,661},662},663
664tooltip: {665theme: "dark",666fillSeriesColor: false,667x: {668show: false,669},670},671};672
673var chart = new ApexCharts(document.querySelector("#most-visited"), options);674chart.render();675
676// =====================================677// Yearly Salary678// =====================================679var options = {680series: [681{682name: "",683data: [20, 15, 30, 25, 10, 15, 12],684},685],686
687chart: {688toolbar: {689show: false,690},691height: 310,692type: "bar",693
694fontFamily: "inherit",695foreColor: "#adb0bb",696},697colors: [698"var(--bs-primary-bg-subtle)",699"var(--bs-primary-bg-subtle)",700"var(--bs-primary)",701"var(--bs-primary-bg-subtle)",702"var(--bs-primary-bg-subtle)",703"var(--bs-primary-bg-subtle)",704],705plotOptions: {706bar: {707borderRadius: 3,708columnWidth: "53%",709distributed: true,710endingShape: "rounded",711},712},713
714dataLabels: {715enabled: false,716},717legend: {718show: false,719},720grid: {721yaxis: {722lines: {723show: false,724},725},726padding: {727top: 0,728right: 0,729bottom: 0,730left: 0,731},732},733xaxis: {734categories: [735["Apr"],736["May"],737["June"],738["July"],739["Aug"],740["Sept"],741["Oct"],742],743axisBorder: {744show: false,745},746axisTicks: {747show: false,748},749},750yaxis: {751labels: {752show: false,753},754},755tooltip: {756theme: "dark",757},758};759
760var chart = new ApexCharts(document.querySelector("#yearly-salary"), options);761chart.render();762
763// =====================================764// Impressions765// =====================================766var options = {767series: [768{769name: "",770data: [20, 15, 30, 25, 10],771},772],773
774chart: {775toolbar: {776show: false,777},778height: 100,779type: "bar",780sparkline: {781enabled: true,782},783fontFamily: "inherit",784foreColor: "#adb0bb",785},786colors: [787"var(--bs-secondary-bg-subtle)",788"var(--bs-secondary-bg-subtle)",789"var(--bs-secondary)",790"var(--bs-secondary-bg-subtle)",791"var(--bs-secondary-bg-subtle)",792],793plotOptions: {794bar: {795borderRadius: 3,796columnWidth: "64%",797distributed: true,798endingShape: "rounded",799},800},801
802dataLabels: {803enabled: false,804},805legend: {806show: false,807},808grid: {809yaxis: {810lines: {811show: false,812},813},814},815xaxis: {816axisBorder: {817show: false,818},819labels: {820show: false,821},822axisTicks: {823show: false,824},825},826yaxis: {827labels: {828show: false,829},830},831tooltip: {832theme: "dark",833},834};835
836var chart = new ApexCharts(document.querySelector("#impressions"), options);837chart.render();838
839// =====================================840// Customers841// =====================================842var options = {843chart: {844id: "customers",845type: "area",846height: 80,847sparkline: {848enabled: true,849},850group: "customers",851fontFamily: "inherit",852foreColor: "#adb0bb",853},854
855series: [856{857name: "",858color: "var(--bs-secondary)",859data: [30, 25, 35, 20, 30, 40],860},861],862stroke: {863curve: "smooth",864width: 2,865},866fill: {867type: "gradient",868gradient: {869shadeIntensity: 0,870inverseColors: false,871opacityFrom: 0.12,872opacityTo: 0,873stops: [20, 180],874},875},876
877markers: {878size: 0,879},880tooltip: {881theme: "dark",882fixed: {883enabled: true,884position: "right",885},886x: {887show: false,888},889},890};891new ApexCharts(document.querySelector("#customers"), options).render();892
893// =====================================894// Projects895// =====================================896var options = {897series: [898{899name: "",900data: [4, 10, 9, 7, 9, 10],901},902],903
904chart: {905toolbar: {906show: false,907},908height: 80,909type: "bar",910sparkline: {911enabled: true,912},913fontFamily: "inherit",914foreColor: "#adb0bb",915},916colors: [917"var(--bs-primary)",918],919plotOptions: {920bar: {921borderRadius: 4,922columnWidth: "30%",923distributed: true,924endingShape: "all",925borderRadiusApplication: "end",926},927},928
929dataLabels: {930enabled: false,931},932legend: {933show: false,934},935grid: {936yaxis: {937lines: {938show: false,939},940},941padding: {942top: 0,943right: 0,944bottom: 0,945left: 0,946},947},948xaxis: {949axisBorder: {950show: false,951},952labels: {953show: false,954},955axisTicks: {956show: false,957},958},959yaxis: {960labels: {961show: false,962},963},964tooltip: {965theme: "dark",966},967};968
969var chart = new ApexCharts(document.querySelector("#projects"), options);970chart.render();971
972// =====================================973// Revenue Updates974// =====================================975var options = {976series: [977{978name: "Footware",979data: [2.5, 2.7, 3.2, 2.6, 1.9, 2.1],980},981{982name: "Fashionware",983data: [-2.8, -1.1, -3.0, -1.5, -1.9, -1.2],984},985],986chart: {987height: 320,988type: "bar",989foreColor: "#adb0bb",990fontFamily: "inherit",991toolbar: {992show: false,993},994
995stacked: true,996},997colors: ["var(--bs-primary)", "var(--bs-secondary)"],998plotOptions: {999bar: {1000horizontal: false,1001barHeight: "60%",1002columnWidth: "20%",1003borderRadius: [5],1004borderRadiusApplication: "end",1005borderRadiusWhenStacked: "all",1006},1007},1008stroke: {1009show: false,1010},1011dataLabels: {1012enabled: false,1013},1014legend: {1015show: false,1016},1017grid: {1018show: false,1019padding: {1020top: 0,1021right: 0,1022bottom: 0,1023left: 0,1024},1025},1026yaxis: {1027min: -5,1028max: 5,1029tickAmount: 4,1030},1031xaxis: {1032categories: ["Jan", "Feb", "Mar", "Apr", "May", "June"],1033axisTicks: {1034show: false,1035},1036},1037tooltip: {1038theme: "dark",1039},1040};1041
1042var chart = new ApexCharts(1043document.querySelector("#revenue-updates"),1044options
1045);1046chart.render();1047
1048// =====================================1049// Sales Overview1050// =====================================1051var options = {1052color: "#adb5bd",1053series: [38, 40, 25],1054labels: ["Expance", "Revenue", "Profit"],1055chart: {1056type: "donut",1057fontFamily: "inherit",1058foreColor: "#adb0bb",1059},1060plotOptions: {1061pie: {1062donut: {1063size: "89%",1064background: "transparent",1065labels: {1066show: true,1067name: {1068show: true,1069offsetY: 7,1070},1071value: {1072show: false,1073},1074total: {1075show: true,1076color: "#5A6A85",1077fontSize: "20px",1078fontWeight: "600",1079label: "$500,458",1080},1081},1082},1083},1084},1085
1086dataLabels: {1087enabled: false,1088},1089stroke: {1090show: false,1091},1092legend: {1093show: false,1094},1095colors: ["var(--bs-secondary)", "#EAEFF4", "var(--bs-primary)"],1096
1097tooltip: {1098theme: "dark",1099fillSeriesColor: false,1100},1101};1102
1103var chart = new ApexCharts(1104document.querySelector("#sales-overview"),1105options
1106);1107chart.render();1108});1109