// ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import Grid from '@mui/material/Grid' import Divider from '@mui/material/Divider' import { useTheme } from '@mui/material/styles' 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 ReactApexcharts from 'src/@core/components/react-apexcharts' // ** Util Import import { hexToRGBA } from 'src/@core/utils/hex-to-rgba' const seriesSales = [ { data: [0, 15, 0, 17, 5, 30] } ] const seriesProfit = [ { data: [5, 25, 0, 30, 15, 30] } ] const CardStatsSalesProfit = () => { // ** Hook const theme = useTheme() const optionsSales: ApexOptions = { chart: { parentHeightOffset: 0, toolbar: { show: false } }, grid: { show: false, padding: { left: -7 } }, tooltip: { enabled: false }, colors: [hexToRGBA(theme.palette.success.main, 1)], markers: { size: 5, offsetY: 1, offsetX: -2, strokeWidth: 2, strokeOpacity: 1, colors: ['transparent'], strokeColors: 'transparent', discrete: [ { size: 5, seriesIndex: 0, strokeColor: theme.palette.success.main, fillColor: theme.palette.background.paper, dataPointIndex: seriesSales[0].data.length - 1 } ] }, stroke: { width: 3, curve: 'smooth', lineCap: 'round' }, xaxis: { labels: { show: false }, axisTicks: { show: false }, axisBorder: { show: false } }, yaxis: { labels: { show: false } } } const optionsProfit: ApexOptions = { chart: { parentHeightOffset: 0, toolbar: { show: false } }, grid: { show: false, padding: { left: -5 } }, tooltip: { enabled: false }, colors: [hexToRGBA(theme.palette.error.main, 1)], markers: { size: 5, offsetY: 0, offsetX: -2, strokeWidth: 2, strokeOpacity: 1, colors: ['transparent'], strokeColors: 'transparent', discrete: [ { size: 5, seriesIndex: 0, strokeColor: theme.palette.error.main, fillColor: theme.palette.background.paper, dataPointIndex: seriesSales[0].data.length - 1 } ] }, stroke: { width: 3, curve: 'smooth', lineCap: 'round' }, xaxis: { labels: { show: false }, axisTicks: { show: false }, axisBorder: { show: false } }, yaxis: { labels: { show: false } } } return ( 152k +12% Total Sales `${theme.spacing(3)} !important` }}> 89.5k -8% Total Profit ) } export default CardStatsSalesProfit