suiss/ui
  • Docs
  • Components
  • Patterns
  • Interactions
  • Charts
  • Blocks
  • AI
GitHubCreate
DocsComponentsPatternsInteractionsChartsBlocksAICreate
Charts70
  • Overview
  • Area Chart
  • Bar Chart
  • Line Chart
  • Pie Chart
  • Radar Chart
  • Radial Chart
  • Tooltip Chart

suiss/ui ยท Chart

Radar Chart

Ten radar charts for comparing several measures at once, with dots, circular or filled grids, legends, outlines and multiple series.

Radar Chart is an open-source chart from suiss/ui for React, React Native, SwiftUI and Jetpack Compose. The @esuiss/ui CLI copies its source into your project, so you own the code.

Radar charts compare one or two subjects across several measures on axes that share a center. Use the default for a single profile, add a second series to compare two periods or products, and choose between polygonal, circular, filled or no grid lines to set how much structure the chart shows. The radius axis variant adds a visible value scale.

Each chart is built on the Chart and Card components.

Every variant below is its own registry item, so you can add only the ones you need. Each one renders the same design on React, React Native, SwiftUI and Jetpack Compose.

Default

A single filled radar shape showing this month's scores across six training skills.

components/charts/radar-chart-default.tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,

One series drawn as a filled shape across six axes on a polygon grid. Use it to show the profile of a single item across several comparable scores, such as skills or product ratings.

Replace chartData with one record per axis, and set dataKey on PolarAngleAxis to the axis name field and on Radar to your value field. Rename the series in chartConfig to set its label and color. The radius adapts to the largest value, so two charts with different data aren't directly comparable; the radius-axis variant uses a fixed range. Radar charts read best with five to eight axes.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-default

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-default
  1. Install the following dependencies:
$ pnpm add recharts
  1. Add the pieces it builds on: Card, Chart.

  2. Copy and paste the following code into your project.

components/charts/radar-chart-default.tsx
  1. Update the import paths to match your project setup.

Usage

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

Web preview

uniwind/components/charts/radar-chart-default.tsx
swift/Charts/RadarChartDefault.swift
kotlin/charts/RadarChartDefault.kt

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.

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

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-default

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-default
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-default

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-default --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-default

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-default --platform kotlin

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

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

  2. Copy and paste the following code into components/charts/radar-chart-default.tsx:

uniwind/components/charts/radar-chart-default.tsx
  1. Update the import paths to match your project setup.
  1. Add the pieces it builds on: Card, Chart.

  2. Copy and paste the following code into components/charts/radar-chart-default.tsx:

nativewind/components/charts/radar-chart-default.tsx
  1. Update the import paths to match your project setup.
  1. Add the pieces it builds on: Card, Chart.

  2. Copy and paste the following code into components/charts/radar-chart-default.tsx:

stylesheet/components/charts/radar-chart-default.tsx
  1. Update the import paths to match your project setup.
  1. Target iOS 17 or later.

  2. Copy the theme files every view uses:

swift/Theme/Theme.swift
swift/Theme/Tokens.swift
  1. Copy the source and every file it uses:
swift/Charts/RadarChartDefault.swift
swift/Components/Card.swift
swift/Components/Chart.swift
swift/Components/Haptics.swift
swift/Components/Item.swift
swift/Components/Separator.swift
  1. Add the files to your app target.
  1. Apply the Compose compiler plugin, enable Compose, set compileSdk to 37 or higher and minSdk to 24 or higher, and add the dependencies:
build.gradle.kts
plugins {
    id("org.jetbrains.kotlin.plugin.compose")
}

android {
    compileSdk = 37
    defaultConfig { minSdk = 24 }
    buildFeatures { compose = true }
}

dependencies {
    implementation(platform("androidx.compose:compose-bom:2026.09.00"))
    implementation("androidx.compose.foundation:foundation")
    implementation("androidx.compose.ui:ui")
}
  1. Copy the theme files every view uses:
kotlin/theme/Theme.kt
kotlin/theme/Tokens.kt
  1. Copy the source and every file it uses:
kotlin/charts/RadarChartDefault.kt
kotlin/components/Card.kt
kotlin/components/Chart.kt
kotlin/components/Content.kt
kotlin/components/FormSupport.kt
kotlin/components/Haptics.kt
kotlin/components/Icon.kt
  1. Update the com.esuiss.ui package names to match your project.

Usage

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

struct RadarExample: View {
  var body: some View {
    RadarChartDefault()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartDefault

@Composable
fun RadarExample() {
    RadarChartDefault()
}

Dots

A single radar shape with a solid dot marking the value on every axis.

components/charts/radar-chart-dots.tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,

A single radar shape with a solid dot at the value on every axis. The dots make individual scores easier to locate than on the plain filled shape.

Replace chartData, set the axis and value keys, and rename the series in chartConfig. The dot prop on Radar sets the marker size; set it to false for the plain shape.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-dots

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-dots

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartDots } from "@/components/charts/radar-chart-dots"
<RadarChartDots />
Web

Web preview

uniwind/components/charts/radar-chart-dots.tsx
swift/Charts/RadarChartDots.swift
kotlin/charts/RadarChartDots.kt

A RadarChart with one lightly filled Radar series and a dot on each point. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Only thisMonth is drawn. Pressing the chart shows a tooltip.

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

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-dots

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-dots
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-dots

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-dots --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-dots

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-dots --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartDots } from "@/components/charts/radar-chart-dots"
<RadarChartDots />
import SwiftUI

struct RadarDotsExample: View {
  var body: some View {
    RadarChartDots()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartDots

@Composable
fun RadarDotsExample() {
    RadarChartDots()
}

Grid Circle

A single radar shape drawn over circular rings instead of polygonal grid lines.

components/charts/radar-chart-grid-circle.tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,

The default radar shape drawn over concentric circles instead of polygon rings. Circles look softer and avoid suggesting straight edges between axes that the data doesn't have.

Replace chartData, set the axis and value keys, and rename the series in chartConfig. Remove gridType from PolarGrid to go back to polygon rings.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-circle

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-circle

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartGridCircle } from "@/components/charts/radar-chart-grid-circle"
<RadarChartGridCircle />
Web

Web preview

uniwind/components/charts/radar-chart-grid-circle.tsx
swift/Charts/RadarChartGridCircle.swift
kotlin/charts/RadarChartGridCircle.kt

A RadarChart whose PolarGrid uses gridType="circle", with 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.

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

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-circle

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-circle
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-circle

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-circle --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-circle

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-circle --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartGridCircle } from "@/components/charts/radar-chart-grid-circle"
<RadarChartGridCircle />
import SwiftUI

struct RadarGridCircleExample: View {
  var body: some View {
    RadarChartGridCircle()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartGridCircle

@Composable
fun RadarGridCircleExample() {
    RadarChartGridCircle()
}

Grid Filled

A borderless radar shape over shaded circular rings separated by card-colored lines.

components/charts/radar-chart-grid-filled.tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,

A borderless radar shape over shaded circular bands, separated by lines in the card's background color (muted). Choose it for a quieter, more graphic look where the grid reads as tinted rings rather than lines.

Replace chartData, set the axis and value keys, and rename the series in chartConfig. The fill and opacity on PolarGrid set the band shading, and the opacity on Radar the strength of the shape. The gaps between bands use the card's background color, so place the chart on that surface or change the grid stroke to match.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-filled

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-filled

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartGridFilled } from "@/components/charts/radar-chart-grid-filled"
<RadarChartGridFilled />
Web

Web preview

uniwind/components/charts/radar-chart-grid-filled.tsx
swift/Charts/RadarChartGridFilled.swift
kotlin/charts/RadarChartGridFilled.kt

A RadarChart whose circular PolarGrid is filled with the secondary color and separated by strokes in the card color. The single Radar series has no stroke. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Pressing the chart shows a tooltip.

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

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-filled

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-filled
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-filled

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-filled --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-filled

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-filled --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartGridFilled } from "@/components/charts/radar-chart-grid-filled"
<RadarChartGridFilled />
import SwiftUI

struct RadarGridFilledExample: View {
  var body: some View {
    RadarChartGridFilled()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartGridFilled

@Composable
fun RadarGridFilledExample() {
    RadarChartGridFilled()
}

Grid None

A single solid radar shape with no grid and no outline, leaving only the shape and axis labels.

components/charts/radar-chart-grid-none.tsx
"use client"

import { PolarAngleAxis, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,

A solid radar shape with no grid and no outline, leaving only the shape and the axis labels. Use it as a compact, decorative profile where exact values come from the tooltip.

Replace chartData, set the axis and value keys, and rename the series in chartConfig. fillOpacity on Radar sets the shape's intensity. With no grid, readers can't estimate values from the chart, so keep the tooltip or show the numbers elsewhere.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-none

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-none

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartGridNone } from "@/components/charts/radar-chart-grid-none"
<RadarChartGridNone />
Web

Web preview

uniwind/components/charts/radar-chart-grid-none.tsx
swift/Charts/RadarChartGridNone.swift
kotlin/charts/RadarChartGridNone.kt

A RadarChart without a PolarGrid, so only the angle axis labels and one filled Radar shape remain. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Pressing the chart shows a tooltip.

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

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-none

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-none
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-none

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-none --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-grid-none

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-grid-none --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartGridNone } from "@/components/charts/radar-chart-grid-none"
<RadarChartGridNone />
import SwiftUI

struct RadarGridNoneExample: View {
  var body: some View {
    RadarChartGridNone()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartGridNone

@Composable
fun RadarGridNoneExample() {
    RadarChartGridNone()
}

Interactive

A phone model comparison where toggle chips show up to three models, which grow in and out of the radar.

components/charts/radar-chart-interactive.tsx
"use client"

import * as React from "react"
import {
  PolarAngleAxis,
  PolarGrid,
  PolarRadiusAxis,
  Radar,
  RadarChart,
  useActiveTooltipLabel,
} from "recharts"

import { Card, CardContent, CardHeader } from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,

A phone comparison where chips select up to three models; their shapes grow into or shrink out of the radar, and side cards show each model's overall score or the score on the hovered axis. Use it as a template for comparing a handful of items across shared criteria.

Replace AXES with your criteria and SCORES with one array per item in the same order, and add each item's label and color to chartConfig. MAX_SELECTED sets how many items show at once and the selected state which ones start visible; selecting past the limit drops the oldest, and the last one can't be turned off. The scale is fixed from 0 to 100, so rescale your scores or change the radius axis domain. The score cards are a live region, and the grow animation is skipped when reduced motion is preferred.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-interactive

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-interactive

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartInteractive } from "@/components/charts/radar-chart-interactive"
<RadarChartInteractive />
Web

Web preview

uniwind/components/charts/radar-chart-interactive.tsx
swift/Charts/RadarChartInteractive.swift
kotlin/charts/RadarChartInteractive.kt

A Card with a row of Toggle chips, a RadarChart and a summary card per model. Scores live in SCORES, one array per model, in the order of AXES. Up to three models can be selected; picking a fourth drops the oldest, and the last one cannot be cleared. Pressing an axis bolds its label and switches each summary from the overall average to that axis score; a tooltip lists the values. Each radar sets isAnimationActive={false} and draws without the enter animation.

Replace AXES and SCORES with your attributes and items, and add a matching entry to chartConfig and SWATCH for each. Change MAX_SELECTED to allow more series. The component takes no props.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-interactive

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-interactive
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-interactive

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-interactive --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-interactive

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-interactive --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartInteractive } from "@/components/charts/radar-chart-interactive"
<RadarChartInteractive />
import SwiftUI

struct RadarInteractiveExample: View {
  var body: some View {
    RadarChartInteractive()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartInteractive

@Composable
fun RadarInteractiveExample() {
    RadarChartInteractive()
}

Legend

Two overlapping radar shapes with a legend beneath that names each series.

components/charts/radar-chart-legend.tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartLegend,
  ChartLegendContent,

Two overlapping radar shapes with a legend underneath naming each series. Pick it over the plain multiple-series chart when readers need to know which shape is which without hovering.

Replace chartData and rename the series keys in the data, both Radar elements and chartConfig; the legend reads labels and colors from the config. The series declared last is drawn on top.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-legend

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-legend

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartLegend } from "@/components/charts/radar-chart-legend"
<RadarChartLegend />
Web

Web preview

uniwind/components/charts/radar-chart-legend.tsx
swift/Charts/RadarChartLegend.swift
kotlin/charts/RadarChartLegend.kt

A RadarChart with two filled Radar series and a ChartLegend that names them from chartConfig. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Pressing the chart shows a tooltip with both values.

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

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-legend

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-legend
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-legend

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-legend --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-legend

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-legend --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartLegend } from "@/components/charts/radar-chart-legend"
<RadarChartLegend />
import SwiftUI

struct RadarLegendExample: View {
  var body: some View {
    RadarChartLegend()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartLegend

@Composable
fun RadarLegendExample() {
    RadarChartLegend()
}

Lines Only

Two radar outlines with no fill, comparing this month and last month by stroke alone.

components/charts/radar-chart-lines-only.tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,

Two radar outlines without fill, comparing this month with last month by stroke alone. Use it when filled shapes would hide each other, especially with more than two series.

Replace chartData and rename the series keys in the data, the Radar elements and chartConfig, and add a Radar for each extra series. Without fill or legend, color is the only cue for which line is which, so add a legend or pick strongly contrasting colors.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-lines-only

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-lines-only

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartLinesOnly } from "@/components/charts/radar-chart-lines-only"
<RadarChartLinesOnly />
Web

Web preview

uniwind/components/charts/radar-chart-lines-only.tsx
swift/Charts/RadarChartLinesOnly.swift
kotlin/charts/RadarChartLinesOnly.kt

A RadarChart with two Radar series drawn with fillOpacity={0}, so only the outlines show. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Pressing the chart shows a tooltip with both values.

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

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-lines-only

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-lines-only
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-lines-only

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-lines-only --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-lines-only

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-lines-only --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartLinesOnly } from "@/components/charts/radar-chart-lines-only"
<RadarChartLinesOnly />
import SwiftUI

struct RadarLinesOnlyExample: View {
  var body: some View {
    RadarChartLinesOnly()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartLinesOnly

@Composable
fun RadarLinesOnlyExample() {
    RadarChartLinesOnly()
}

Multiple

Two overlapping radar shapes comparing this month with last month.

components/charts/radar-chart-multiple.tsx
"use client"

import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,

Two semi-transparent radar shapes layered on the same grid, comparing this month with last month. Use it for a before-and-after or two-item comparison across the same axes.

Replace chartData and rename the series keys in the data, both Radar elements and chartConfig. Put the reference series first so the current one is drawn on top. There is no legend, so series names appear only in the tooltip; use the legend variant if that's not enough.

Installation

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

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartMultiple } from "@/components/charts/radar-chart-multiple"
<RadarChartMultiple />
Web

Web preview

uniwind/components/charts/radar-chart-multiple.tsx
swift/Charts/RadarChartMultiple.swift
kotlin/charts/RadarChartMultiple.kt

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.

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

Installation

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

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-multiple
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-multiple

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-multiple --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-multiple

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-multiple --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartMultiple } from "@/components/charts/radar-chart-multiple"
<RadarChartMultiple />
import SwiftUI

struct RadarMultipleExample: View {
  var body: some View {
    RadarChartMultiple()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartMultiple

@Composable
fun RadarMultipleExample() {
    RadarChartMultiple()
}

Radius Axis

A single radar shape with a visible 0 to 100 value scale along the vertical axis.

components/charts/radar-chart-radius-axis.tsx
"use client"

import {
  PolarAngleAxis,
  PolarGrid,
  PolarRadiusAxis,
  Radar,
  RadarChart,
} from "recharts"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,

A single radar shape with a 0 to 100 scale printed along the vertical axis. Choose it when readers need to estimate values, or when several radar charts must share the same scale.

Replace chartData, set the axis and value keys, and rename the series in chartConfig. Set domain on PolarRadiusAxis to your score range, tickCount for the number of labels and its angle to move the scale. A fixed domain keeps shapes comparable across charts as long as your scores stay inside it.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-radius-axis

Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-radius-axis

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartRadiusAxis } from "@/components/charts/radar-chart-radius-axis"
<RadarChartRadiusAxis />
Web

Web preview

uniwind/components/charts/radar-chart-radius-axis.tsx
swift/Charts/RadarChartRadiusAxis.swift
kotlin/charts/RadarChartRadiusAxis.kt

A RadarChart that adds a PolarRadiusAxis with five ticks over a fixed 0 to 100 domain, plus one filled Radar series. chartData has one record per axis (skill) with thisMonth and lastMonth scores. Pressing the chart shows a tooltip.

Replace chartData with your records and set the PolarRadiusAxis domain to your value range. Rename the series in chartConfig. The component takes no props.

Installation

$ pnpm dlx shadcn@latest add @esuiss/radar-chart-radius-axis

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-radius-axis
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-radius-axis

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-radius-axis --platform swift
$ pnpm dlx shadcn@latest add @esuiss/radar-chart-radius-axis

See Installation for the components.json setup. Or use the suiss/ui CLI:

$ pnpm dlx @esuiss/ui@latest add charts radar-chart-radius-axis --platform kotlin

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

Follow the manual steps under Default and copy this variant's source instead.

Usage

import { RadarChartRadiusAxis } from "@/components/charts/radar-chart-radius-axis"
<RadarChartRadiusAxis />
import SwiftUI

struct RadarRadiusAxisExample: View {
  var body: some View {
    RadarChartRadiusAxis()
  }
}
import androidx.compose.runtime.Composable
import com.esuiss.ui.charts.RadarChartRadiusAxis

@Composable
fun RadarRadiusAxisExample() {
    RadarChartRadiusAxis()
}
NextRadial ChartPreviousPie Chart

On this page

  1. 01Default
  2. 02Dots
  3. 03Grid Circle
  4. 04Grid Filled
  5. 05Grid None
  6. 06Interactive
  7. 07Legend
  8. 08Lines Only
  9. 09Multiple
  10. 10Radius Axis