// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import { useTheme } from '@mui/material/styles' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' // ** Third Party Imports import { ApexOptions } from 'apexcharts' // ** Custom Components Imports import ReactApexcharts from 'src/@core/components/react-apexcharts' const CardStatsDonutChart = () => { // ** Hook const theme = useTheme() const options: ApexOptions = { legend: { show: false }, stroke: { width: 5, colors: [theme.palette.background.paper] }, colors: [theme.palette.primary.main, theme.palette.success.main, theme.palette.secondary.main], labels: [`${new Date().getFullYear()}`, `${new Date().getFullYear() - 1}`, `${new Date().getFullYear() - 2}`], tooltip: { y: { formatter: (val: number) => `${val}%` } }, dataLabels: { enabled: false }, states: { hover: { filter: { type: 'none' } }, active: { filter: { type: 'none' } } }, plotOptions: { pie: { donut: { size: '70%', labels: { show: true, name: { show: false }, total: { label: '', show: true, fontWeight: 600, fontSize: '1rem', color: theme.palette.text.secondary, formatter: val => (typeof val === 'string' ? `${val}%` : '12%') }, value: { offsetY: 6, fontWeight: 600, fontSize: '1rem', formatter: val => `${val}%`, color: theme.palette.text.secondary } } } } } } return ( $27.9k +16% Total Growth ) } export default CardStatsDonutChart