import React from "react"; import { Box } from "@mui/material"; import Card from "@mui/material/Card"; import { Typography } from "@mui/material"; import InputLabel from "@mui/material/InputLabel"; import MenuItem from "@mui/material/MenuItem"; import FormControl from "@mui/material/FormControl"; import Select from "@mui/material/Select"; import dynamic from "next/dynamic"; const Chart = dynamic(() => import("react-apexcharts"), { ssr: false, }); const HoursSpent = () => { // Select Form const [select, setSelect] = React.useState(""); const handleChange = (event) => { setSelect(event.target.value); }; // Chart const series = [ { name: "Spent", data: [21, 22, 10, 28, 16, 20, 25], }, ]; const options = { chart: { toolbar: { show: false, }, events: { click: function (chart, w, e) { // console.log(chart, w, e) }, }, }, colors: ["#757FEF"], plotOptions: { bar: { columnWidth: "40%", distributed: true, }, }, dataLabels: { enabled: false, }, legend: { show: false, }, xaxis: { categories: [ ["Sat"], ["Sun"], ["Mon"], ["Tue"], ["Wed"], ["Thu"], ["Fri"], ], labels: { style: { colors: "#A9A9C8", fontSize: "12px", }, }, }, yaxis: { labels: { style: { colors: "#A9A9C8", fontSize: "12px", }, }, axisBorder: { show: false, colors: "#f6f6f7", }, }, fill: { opacity: 1, }, tooltip: { y: { formatter: function (val) { return "" + val + " Hours"; }, }, }, grid: { show: true, borderColor: "#EDEFF5", strokeDashArray: 5, }, }; return ( <> Hours Spent Select ); }; export default HoursSpent;