suiss/uim · Chart

Radar Chart Multiple

A radar chart overlaying this month's and last month's training scores.

Radar Chart Multiple 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 (multiple) on iOS in light mode

A RadarChart with two lightly filled Radar series drawn over a polygon grid. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Pressing the chart shows a tooltip with both values.

Installation

$ pnpm dlx @esuiss/uim@latest add radar-chart-multiple

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

uniwind/components/charts/radar-chart-multiple.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 { RadarChartMultiple } from "@/components/charts/radar-chart-multiple"
<RadarChartMultiple />

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