suiss/uim · Chart

Radial Chart Default

Concentric radial bars showing users by device, each on its own track.

Radial Chart Default 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 on iOS in light mode

A RadialBarChart with one bar per record in chartData (a device and a users count). Each bar is colored through a Cell that reads chartConfig, over a track in the control color. Pressing a bar shows a tooltip.

Installation

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

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-default.tsx:

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

Usage

import { RadialChartDefault } from "@/components/charts/radial-chart-default"
<RadialChartDefault />

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.