suiss/uim · Chart

Radar Chart Default

A radar chart showing one month of training scores across six fitness areas.

Radar 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
Radar on iOS in light mode

The basic RadarChart: a polygon PolarGrid, an angle axis for each skill and one filled Radar series. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Only thisMonth is drawn. Pressing the chart shows a tooltip.

Installation

$ pnpm dlx @esuiss/uim@latest add radar-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/radar-chart-default.tsx:

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

Usage

import { RadarChartDefault } from "@/components/charts/radar-chart-default"
<RadarChartDefault />

Replace chartData with your records, set PolarAngleAxis dataKey to your axis field, and rename the series in chartConfig. The component takes no props.