import merge from 'lodash/merge'; import ReactApexChart from 'react-apexcharts'; // @mui import { styled } from '@mui/material/styles'; import { Card, Typography, Stack } from '@mui/material'; // utils import { fCurrency, fPercent } from '../../utils/formatNumber'; // components import Iconify from '../../components/Iconify'; import BaseOptionChart from '../../components/chart/BaseOptionChart'; // ---------------------------------------------------------------------- const RootStyle = styled(Card)(({ theme }) => ({ boxShadow: 'none', padding: theme.spacing(3), color: theme.palette.primary.darker, backgroundColor: theme.palette.primary.lighter, })); // ---------------------------------------------------------------------- const INITIAL = 500000000 const TOTAL = 257907000; const PERCENT = -3; const CHART_DATA = [{ data: [100, 99, 99, 85, 74, 57, 54, 51] }]; export default function SomethingUsage() { const chartOptions = merge(BaseOptionChart(), { chart: { sparkline: { enabled: true } }, xaxis: { labels: { show: true } }, yaxis: { labels: { show: false } }, stroke: { width: 4 }, legend: { show: false }, grid: { show: false }, tooltip: { marker: { show: false }, y: { formatter: (seriesName: string) => (seriesName) + "%", title: { formatter: () => '', }, }, }, fill: { gradient: { opacityFrom: 0, opacityTo: 0 } }, }); return (
{fCurrency(INITIAL)} Remaining Balance {fCurrency(TOTAL)}
= 0 ? 'eva:trending-up-fill' : 'eva:trending-down-fill'} /> {PERCENT > 0 && '+'} {fPercent(PERCENT)}  than last month
); }