// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import { useTheme } from '@mui/material/styles' import CardHeader from '@mui/material/CardHeader' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' // ** Icon Imports import Icon from 'src/@core/components/icon' // ** Third Party Imports import { ApexOptions } from 'apexcharts' // ** Custom Components Imports 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' const CardWidgetsOrganicSessions = () => { // ** Hook const theme = useTheme() const options: ApexOptions = { chart: { sparkline: { enabled: true } }, colors: [ theme.palette.warning.main, hexToRGBA(theme.palette.warning.main, 0.8), hexToRGBA(theme.palette.warning.main, 0.6), hexToRGBA(theme.palette.warning.main, 0.4), hexToRGBA(theme.palette.warning.main, 0.2) ], legend: { show: false }, tooltip: { enabled: false }, dataLabels: { enabled: false }, stroke: { width: 3, lineCap: 'round', colors: [theme.palette.background.paper] }, labels: ['USA', 'India', 'Canada', 'Japan', 'France'], states: { hover: { filter: { type: 'none' } }, active: { filter: { type: 'none' } } }, plotOptions: { pie: { endAngle: 130, startAngle: -130, customScale: 0.9, donut: { size: '83%', labels: { show: true, name: { offsetY: 25, fontSize: '1rem', color: theme.palette.text.secondary }, value: { offsetY: -15, fontWeight: 500, fontSize: '2.125rem', formatter: value => `${value}k`, color: theme.palette.text.primary }, total: { show: true, label: '2022', fontSize: '1rem', color: theme.palette.text.secondary, formatter: value => `${value.globals.seriesTotals.reduce((total: number, num: number) => total + num)}k` } } } } }, responsive: [ { breakpoint: 1709, options: { chart: { height: 270 } } } ] } return ( } /> USA India Canada Japan France ) } export default CardWidgetsOrganicSessions