lavkach3
1document.addEventListener("DOMContentLoaded", function () {2
3// -----------------------------------------------------------------------4// Subscriptions5// -----------------------------------------------------------------------6var chart = {7series: [8{9name: "2024",10data: [1.2, 2.7, 1, 3.6, 2.1, 2.7, 2.2, 1.3, 2.5],11},12{13name: "2023",14data: [-2.8, -1.1, -2.5, -1.5, -2.3, -1.9, -1, -2.1, -1.3],15},16],17chart: {18toolbar: {19show: false,20},21type: "bar",22fontFamily: "inherit",23foreColor: "#adb0bb",24height: 295,25stacked: true,26offsetX: -15,27},28colors: ["var(--bs-primary)", "var(--bs-danger)"],29plotOptions: {30bar: {31horizontal: false,32barHeight: "60%",33columnWidth: "15%",34borderRadius: [6],35borderRadiusApplication: "end",36borderRadiusWhenStacked: "all",37},38},39dataLabels: {40enabled: false,41},42legend: {43show: false,44},45grid: {46show: true,47padding: {48top: 0,49bottom: 0,50right: 0,51},52borderColor: "rgba(0,0,0,0.05)",53xaxis: {54lines: {55show: true,56},57},58yaxis: {59lines: {60show: true,61},62},63},64yaxis: {65min: -5,66max: 5,67},68xaxis: {69axisBorder: {70show: false,71},72axisTicks: {73show: false,74},75categories: [76"Jan",77"Feb",78"Mar",79"Apr",80"May",81"Jun",82"July",83"Aug",84"Sep",85],86labels: {87style: { fontSize: "13px", colors: "#adb0bb", fontWeight: "400" },88},89},90yaxis: {91tickAmount: 4,92},93tooltip: {94theme: "dark",95},96};97
98var chart = new ApexCharts(99document.querySelector("#revenue-forecast"),100chart
101);102chart.render();103
104// -----------------------------------------------------------------------105// Annual Profit106// -----------------------------------------------------------------------107var options = {108chart: {109id: "annual-profit",110type: "area",111height: 80,112sparkline: {113enabled: true,114},115group: "sparklines",116fontFamily: "inherit",117foreColor: "#adb0bb",118},119series: [120{121name: "Users",122color: "var(--bs-primary)",123data: [25, 66, 20, 40, 12, 58, 20],124},125],126stroke: {127curve: "smooth",128width: 2,129},130fill: {131type: "gradient",132color: "var(--bs-primary)",133
134gradient: {135shadeIntensity: 0,136inverseColors: false,137opacityFrom: 0.1,138opacityTo: 0.1,139stops: [100],140},141},142
143markers: {144size: 0,145},146tooltip: {147theme: "dark",148fixed: {149enabled: true,150position: "right",151},152x: {153show: false,154},155},156};157new ApexCharts(document.querySelector("#annual-profit"), options).render();158
159// =====================================160// Your Preformance161// =====================================162
163var options = {164series: [20, 20, 20, 20, 20],165labels: ["245", "45", "14", "78", "95"],166chart: {167height: 205,168fontFamily: "inherit",169type: "donut",170},171plotOptions: {172pie: {173startAngle: -90,174endAngle: 90,175offsetY: 10,176donut: {177size: "90%",178},179},180},181grid: {182padding: {183bottom: -80,184},185},186legend: {187show: false,188},189dataLabels: {190enabled: false,191name: {192show: false,193},194},195stroke: {196width: 2,197colors: "var(--bs-card-bg)",198},199tooltip: {200fillSeriesColor: false,201},202colors: [203"var(--bs-danger)",204"var(--bs-warning)",205"var(--bs-warning-bg-subtle)",206"var(--bs-secondary-bg-subtle)",207"var(--bs-secondary)",208],209responsive: [{210breakpoint: 1400,211options: {212chart: {213height: 170214},215},216}],217
218};219
220var chart = new ApexCharts(221document.querySelector("#your-preformance"),222options
223);224chart.render();225
226
227// -----------------------------------------------------------------------228// Customers Area229// -----------------------------------------------------------------------230var chart_users = {231series: [232{233name: "April 07 ",234data: [0, 20, 15, 19, 14, 25, 30],235},236{237name: "Last Week",238data: [0, 8, 19, 13, 26, 16, 25],239},240],241chart: {242fontFamily: "inherit",243height: 100,244type: "line",245toolbar: {246show: false,247},248sparkline: {249enabled: true,250},251},252colors: ["var(--bs-primary)", "var(--bs-primary-bg-subtle)"],253grid: {254show: false,255},256stroke: {257curve: "smooth",258colors: ["var(--bs-primary)", "var(--bs-primary-bg-subtle)"],259width: 2,260},261markers: {262colors: ["var(--bs-primary)", "var(--bs-primary-bg-subtle)"],263strokeColors: "transparent",264},265tooltip: {266theme: "dark",267x: {268show: false,269},270followCursor: true,271},272};273var chart_line_basic = new ApexCharts(274document.querySelector("#customers-area"),275chart_users
276);277chart_line_basic.render();278
279
280// -----------------------------------------------------------------------281// Sales Overview282// -----------------------------------------------------------------------283var options = {284series: [50, 80, 30],285labels: ["36%", "10%", "36%"],286chart: {287type: "radialBar",288height: 230,289fontFamily: "inherit",290foreColor: "#c6d1e9",291},292plotOptions: {293radialBar: {294inverseOrder: false,295startAngle: 0,296endAngle: 270,297hollow: {298margin: 1,299size: "40%",300},301dataLabels: {302show: false,303},304},305},306legend: {307show: false,308},309stroke: { width: 1, lineCap: "round" },310tooltip: {311enabled: false,312fillSeriesColor: false,313},314colors: ["var(--bs-primary)", "var(--bs-secondary)", "var(--bs-danger)"],315};316
317var chart = new ApexCharts(318document.querySelector("#sales-overview"),319options
320);321chart.render();322
323// -----------------------------------------------------------------------324// Total settlements325// -----------------------------------------------------------------------326var settlements = {327series: [328{329name: "settlements",330data: [33140, 40, 80, 80, 30, 30, 10, 10, 30, 30, 100, 100, 20, 20, 140, 140,332],333},334],335chart: {336fontFamily: "inherit",337type: "line",338height: 300,339toolbar: { show: !1 },340},341legend: { show: !1 },342dataLabels: { enabled: !1 },343stroke: {344curve: "smooth",345show: !0,346width: 2,347colors: ["var(--bs-primary)"],348},349xaxis: {350categories: [351"1W",352"",353"3W",354"",355"5W",356"6W",357"7W",358"8W",359"9W",360"",361"11W",362"",363"13W",364"",365"15W",366],367axisBorder: { show: !1 },368axisTicks: { show: !1 },369tickAmount: 6,370labels: {371rotate: 0,372rotateAlways: !0,373style: { fontSize: "10px", colors: "#adb0bb", fontWeight: "600" },374},375},376yaxis: {377show: false,378tickAmount: 3,379},380tooltip: {381theme: "dark",382},383colors: ["var(--bs-primary)"],384grid: {385borderColor: "var(--bs-primary-bg-subtle)",386strokeDashArray: 4,387yaxis: { show: false },388},389markers: {390strokeColor: ["var(--bs-primary)"],391strokeWidth: 3,392},393};394
395var chart_area_spline = new ApexCharts(396document.querySelector("#settlements"),397settlements
398);399chart_area_spline.render();400
401});402