// ** 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' // ** Util Import import { hexToRGBA } from 'src/@core/utils/hex-to-rgba' const series = [ { name: 'Earning', data: [44, 21, 56, 34, 47] }, { name: 'Expense', data: [-27, -17, -31, -23, -31] } ] const CardStatsBarChar = () => { // ** Hook const theme = useTheme() const options: ApexOptions = { chart: { stacked: true, parentHeightOffset: 0, toolbar: { show: false } }, legend: { show: false }, dataLabels: { enabled: false }, colors: [hexToRGBA(theme.palette.secondary.main, 1), hexToRGBA(theme.palette.error.main, 1)], plotOptions: { bar: { borderRadius: 4, columnWidth: '21%', endingShape: 'rounded', startingShape: 'rounded' } }, grid: { padding: { top: -21, right: 0, left: -17, bottom: -16 }, yaxis: { lines: { show: false } } }, states: { hover: { filter: { type: 'none' } }, active: { filter: { type: 'none' } } }, xaxis: { labels: { show: false }, axisTicks: { show: false }, axisBorder: { show: false } }, yaxis: { labels: { show: false } } } return ( $88.5k -18% Total Profit ) } export default CardStatsBarChar