import ApexCharts from "apexcharts";
// ===== chartFour
const chart04 = () => {
const chartFourOptions = {
series: [
{
data: [
168, 385, 201, 298, 187, 195, 291, 110, 215, 390, 280, 112, 123, 212,
270, 190, 310, 115, 90, 380, 112, 223, 292, 170, 290, 110, 115, 290,
380, 312,
],
},
],
colors: ["#3C50E0"],
chart: {
fontFamily: "Satoshi, sans-serif",
type: "bar",
height: 350,
toolbar: {
show: false,
},
},
plotOptions: {
bar: {
horizontal: false,
columnWidth: "55%",
endingShape: "rounded",
borderRadius: 2,
},
},
dataLabels: {
enabled: false,
},
stroke: {
show: true,
width: 4,
colors: ["transparent"],
},
xaxis: {
categories: [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30",
],
axisBorder: {
show: false,
},
axisTicks: {
show: false,
},
},
legend: {
show: true,
position: "top",
horizontalAlign: "left",
fontFamily: "Satoshi",
markers: {
radius: 99,
},
},
yaxis: {
title: false,
},
grid: {
yaxis: {
lines: {
show: false,
},
},
},
fill: {
opacity: 1,
},
tooltip: {
x: {
show: false,
},
y: {
formatter: function (val) {
return val;
},
},
},
};
const chartSelector = document.querySelectorAll("#chartFour");
if (chartSelector.length) {
const chartFour = new ApexCharts(
document.querySelector("#chartFour"),
chartFourOptions
);
chartFour.render();
}
};
export default chart04;
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]