import Chart from "react-apexcharts"; import { ApexOptions } from "apexcharts"; import { useState } from "react"; import { Dropdown } from "../ui/dropdown/Dropdown"; import { DropdownItem } from "../ui/dropdown/DropdownItem"; import { MoreDotIcon } from "../../icons"; export default function MonthlyTarget() { const series = [75.55]; const options: ApexOptions = { colors: ["#465FFF"], chart: { fontFamily: "Outfit, sans-serif", type: "radialBar", height: 330, sparkline: { enabled: true, }, }, plotOptions: { radialBar: { startAngle: -85, endAngle: 85, hollow: { size: "80%", }, track: { background: "#E4E7EC", strokeWidth: "100%", margin: 5, // margin is in pixels }, dataLabels: { name: { show: false, }, value: { fontSize: "36px", fontWeight: "600", offsetY: -40, color: "#1D2939", formatter: function (val) { return val + "%"; }, }, }, }, }, fill: { type: "solid", colors: ["#465FFF"], }, stroke: { lineCap: "round", }, labels: ["Progress"], }; const [isOpen, setIsOpen] = useState(false); function toggleDropdown() { setIsOpen(!isOpen); } function closeDropdown() { setIsOpen(false); } return (
Target you’ve set for each month
You earn $3287 today, it's higher than last month. Keep up your good work!
Target
$20K
Revenue
$20K
Today
$20K