"use client" import { Chart, useChart } from "@chakra-ui/charts" import { Bar, BarChart, XAxis, YAxis } from "recharts" const data = [ { name: "Alice", value: 400, avatar: "https://i.pravatar.cc/50?img=1" }, { name: "Bob", value: 300, avatar: "https://i.pravatar.cc/50?img=2" }, { name: "Charlie", value: 200, avatar: "https://i.pravatar.cc/50?img=5" }, { name: "David", value: 278, avatar: "https://i.pravatar.cc/50?img=4" }, ] interface AvatarTickProps { x: number y: number index: number } const AvatarTicks = (props: Partial) => { const { x, y, index } = props as AvatarTickProps const avatarUrl = data[index].avatar return ( avatar ) } export const BarChartWithAvatarTicks = () => { const chart = useChart({ data, series: [{ name: "value", color: "teal.solid" }], }) return ( } stroke={chart.color("border.emphasized")} /> {chart.series.map((item) => ( ))} ) }