import * as React from "react"; import { useTheme } from "@mui/material/styles"; import { Card, CardContent, Typography, Box, Select, MenuItem, FormControl, SelectChangeEvent, } from "@mui/material"; import { BarChart } from "@mui/x-charts/BarChart"; import { axisClasses } from "@mui/x-charts/ChartsAxis"; import ExpandMoreIcon from "@mui/icons-material/ExpandMore"; // Sample Data const data = [ { name: "Jan", v1: 40 }, { name: "Feb", v1: 50 }, { name: "Mar", v1: 80 }, { name: "Apr", v1: 20 }, { name: "May", v1: 60 }, { name: "Jun", v1: 30 }, ]; // Chart Configuration const chartSetting = { yAxis: [ { label: "Value", tickFormatter: (value: number) => `${value}`, // Formatting Y-axis ticks }, ], xAxis: [ { dataKey: "name", scaleType: "band" as const, }, ], width: 500, height: 300, sx: { [`.${axisClasses.left} .${axisClasses.label}`]: { transform: "translate(-20px, 0)", }, }, }; export default function RoundedBarChart() { const theme = useTheme(); const [selectedOption, setSelectedOption] = React.useState("Monthly"); const handleChange = (event: SelectChangeEvent) => { setSelectedOption(event.target.value); }; return ( Charge Stats ); }