RadarChart

The shape grows from the center on a spring. Point at an axis to swell its vertex and read the value. Charts.

Open playground

About

RadarChart is a React component in the Charts category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { RadarChart } from "@ashutoshswamy/smoui" and set data, max, size.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { RadarChart } from "@ashutoshswamy/smoui";

<RadarChart data={[{ label: "Speed", value: 82 }, { label: "Craft", value: 91 }, { label: "Range", value: 64 }]} max={100} />

Props 3

data

3 or more axes.

{ label: string; value: number }[]
max

Value at the outer ring.

numberdefault 100
size

Px.

numberdefault 240