suiss/uim · Chart

Radial Chart Tinted

Radial bars for users by device, where each track is a soft tint of its bar color.

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

A RadialBarChart with one bar per record in chartData, measured against a shared MAX of 320. Each bar is colored through Cell, and its background track uses the same color at low opacity. Pressing a bar shows a tooltip. The bars set isAnimationActive={false} and draw without the enter animation.

Installation

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

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

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

Usage

import { RadialChartTinted } from "@/components/charts/radial-chart-tinted"
<RadialChartTinted />

Replace chartData with your records, set MAX to the top of your range, and add a matching entry per item to chartConfig. The component takes no props.