suiss/uim · Chart

Bar Chart Labeled

A single series of bars with each value printed above its bar.

Bar Chart Labeled is an open-source mobile chart from suiss/uim, drawn with react-native-svg for React Native and Expo, with SwiftUI and Jetpack Compose versions built from the same design tokens. The @esuiss/uim CLI copies its source into your project, so you own the code.

iOS
Bar (labeled) on iOS in light mode

One rounded bar per month with a LabelList placed at the top of each bar, so values are readable without touching the chart. There is no grid; a month axis and a tooltip remain.

Installation

$ pnpm dlx @esuiss/uim@latest add bar-chart-labeled

The CLI also adds what it builds on: Card, Chart.

Manual

  1. Add the pieces it builds on: Card, Chart.

  2. Copy the source into components/charts/bar-chart-labeled.tsx:

uniwind/components/charts/bar-chart-labeled.tsx
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  Bar,
  BarChart,
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,
  LabelList,
  XAxis,
  1. Update the import paths to match your project.

Usage

import { BarChartLabeled } from "@/components/charts/bar-chart-labeled"
<BarChartLabeled />

Replace chartData with your records and change each dataKey to match your fields. Change position and offset on the LabelList to move the labels. The component takes no props.