suiss/uim · Chart

Radial Chart Label

Radial bars for users by device, with each device name printed at the start of its bar.

Radial Chart Label 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
Radial (label) on iOS in light mode

A RadialBarChart with one bar per record in chartData, sweeping from 90 to -200 degrees. Bars are colored through Cell and labeled with a LabelList that reads names from chartConfig. Pressing a bar shows a tooltip.

Installation

$ pnpm dlx @esuiss/uim@latest add radial-chart-label

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/radial-chart-label.tsx:

uniwind/components/charts/radial-chart-label.tsx
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  Cell,
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,
  LabelList,
  RadialBar,
  RadialBarChart,
  1. Update the import paths to match your project.

Usage

import { RadialChartLabel } from "@/components/charts/radial-chart-label"
<RadialChartLabel />

Replace chartData with your records and add a matching entry per item to chartConfig, whose colors the Cell children read. The component takes no props.