apps/www/content/docs/charts/bar-segment.mdx
import { BarSegment, Chart, useChart } from "@chakra-ui/charts"
<BarSegment.Root>
<BarSegment.Content>
<BarSegment.Value />
<BarSegment.Bar />
<BarSegment.Label />
</BarSegment.Content>
</BarSegment.Root>
Pass the barSize prop to the BarSegment.Root component to configure the size
of the bar.
Use the BarSegment.Legend component to render the legend. You can pass
showPercent and showValue to control the visibility of the percentage and
values.
Pass the tooltip prop to the BarSegment.Bar component to show a tooltip when
hovering over the bar.
To reference a specific value on the chart, use the BarSegment.Reference
component.