"use client" import { Chart, useChart } from "@chakra-ui/charts" import { Bar, BarChart, CartesianGrid, XAxis, YAxis } from "recharts" export const BarChartRounded = () => { const chart = useChart({ data: [ { allocation: 60, type: "Stock" }, { allocation: 45, type: "Crypto" }, { allocation: 12, type: "ETF" }, { allocation: 4, type: "Cash" }, ], series: [{ name: "allocation", color: "teal.solid" }], }) return ( `${value}%`} /> {chart.series.map((item) => ( ))} ) }