"use client" import { Chart, useChart } from "@chakra-ui/charts" import { Cell, Pie, PieChart, Sector, Tooltip } from "recharts" export const DonutChartWithDetachedSegment = () => { const chart = useChart({ data: [ { name: "windows", value: 400, color: "blue.solid" }, { name: "mac", value: 300, color: "orange.solid" }, { name: "linux", value: 300, color: "pink.solid" }, { name: "other", value: 200, color: "green.solid" }, ], }) return ( } /> } strokeWidth={5} > {chart.data.map((item) => ( ))} ) }