// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import CardHeader from '@mui/material/CardHeader' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' import Grid, { GridProps } from '@mui/material/Grid' import { styled, useTheme } from '@mui/material/styles' // ** Icon Imports import Icon from 'src/@core/components/icon' // ** Third Party Imports import { ApexOptions } from 'apexcharts' // ** Custom Components Imports import CustomAvatar from 'src/@core/components/mui/avatar' import OptionsMenu from 'src/@core/components/option-menu' import ReactApexcharts from 'src/@core/components/react-apexcharts' // ** Util Import import { hexToRGBA } from 'src/@core/utils/hex-to-rgba' // Styled Grid component const StyledGrid = styled(Grid)(({ theme }) => ({ [theme.breakpoints.down('sm')]: { borderBottom: `1px solid ${theme.palette.divider}` }, [theme.breakpoints.up('sm')]: { borderRight: `1px solid ${theme.palette.divider}` } })) const labels = ['Development Apps', 'UI Design', 'IOS Application', 'Web App Wireframing', 'Prototyping'] const series = [ { data: [ { x: 'Catherine', y: [ new Date(`${new Date().getFullYear()}-01-01`).getTime(), new Date(`${new Date().getFullYear()}-04-02`).getTime() ] }, { x: 'Janelle', y: [ new Date(`${new Date().getFullYear()}-02-18`).getTime(), new Date(`${new Date().getFullYear()}-05-30`).getTime() ] }, { x: 'Wellington', y: [ new Date(`${new Date().getFullYear()}-02-07`).getTime(), new Date(`${new Date().getFullYear()}-04-31`).getTime() ] }, { x: 'Blake', y: [ new Date(`${new Date().getFullYear()}-01-14`).getTime(), new Date(`${new Date().getFullYear()}-06-30`).getTime() ] }, { x: 'Quinn', y: [ new Date(`${new Date().getFullYear()}-04-01`).getTime(), new Date(`${new Date().getFullYear()}-07-31`).getTime() ] } ] } ] const CardWidgetsProjectTimeline = () => { // ** Hook const theme = useTheme() const options: ApexOptions = { chart: { parentHeightOffset: 0, toolbar: { show: false } }, tooltip: { enabled: false }, plotOptions: { bar: { horizontal: true, borderRadius: 15, distributed: true, endingShape: 'rounded', startingShape: 'rounded' } }, stroke: { width: 2, colors: [theme.palette.background.paper] }, colors: [ hexToRGBA(theme.palette.primary.main, 1), hexToRGBA(theme.palette.success.main, 1), hexToRGBA(theme.palette.secondary.main, 1), hexToRGBA(theme.palette.info.main, 1), hexToRGBA(theme.palette.warning.main, 1) ], dataLabels: { enabled: true, style: { fontWeight: 400 }, formatter: (val, opts) => labels[opts.dataPointIndex] }, states: { hover: { filter: { type: 'none' } }, active: { filter: { type: 'none' } } }, legend: { show: false }, grid: { strokeDashArray: 6, borderColor: theme.palette.divider, xaxis: { lines: { show: true } }, yaxis: { lines: { show: false } }, padding: { top: -22, left: 20, right: 18, bottom: 4 } }, xaxis: { type: 'datetime', axisTicks: { show: false }, axisBorder: { show: false }, labels: { style: { colors: theme.palette.text.disabled }, datetimeFormatter: { year: 'MMM', month: 'MMM' } } }, yaxis: { labels: { show: true, align: theme.direction === 'rtl' ? 'right' : 'left', style: { fontSize: '0.875rem', colors: theme.palette.text.primary } } } } return ( } /> IOS Application Task 840/2.5k Web Application Task 99/1.42k UI Kit Design Task 120/350 ) } export default CardWidgetsProjectTimeline