suiss/uim · Chart

Radial Chart Progress

A three-quarter arc tracking progress toward a reading goal, with the count in the middle.

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

A RadialBarChart drawn from 225 to -45 degrees, with one value on a 0 to 100 PolarAngleAxis over a tinted track. The "16 / 25" count and caption are Text layered in the center. Nothing is interactive.

Installation

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

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

Manual

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

  2. Copy the source into components/charts/radial-chart-progress.tsx:

uniwind/components/charts/radial-chart-progress.tsx
import { View } from "react-native"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  PolarAngleAxis,
  RadialBar,
  RadialBarChart,
} from "@/components/ui/chart"
import { Text } from "@/components/ui/text"
  1. Update the import paths to match your project.

Usage

import { RadialChartProgress } from "@/components/charts/radial-chart-progress"
<RadialChartProgress />

Change the value in chartData (0 to 100) and the centered text to match it; the label and color live in chartConfig. The component takes no props.