import ApexCharts from "apexcharts";
// ===== chartThree
const chart03 = () => {
const chartThreeOptions = {
series: [65, 34, 45, 12],
chart: {
type: "donut",
width: 380,
},
colors: ["#3C50E0", "#6577F3", "#8FD0EF", "#0FADCF"],
labels: ["Desktop", "Tablet", "Mobile", "Unknown"],
legend: {
show: false,
position: "bottom",
},
plotOptions: {
pie: {
donut: {
size: "65%",
background: "transparent",
},
},
},
dataLabels: {
enabled: false,
},
responsive: [
{
breakpoint: 640,
options: {
chart: {
width: 200,
},
},
},
],
};
const chartSelector = document.querySelectorAll("#chartThree");
if (chartSelector.length) {
const chartThree = new ApexCharts(
document.querySelector("#chartThree"),
chartThreeOptions
);
chartThree.render();
}
};
export default chart03;
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]