uibrik

Orbit Radar

New

Preview

Customize

Shapes2
Axes6
Max100
Accent

Usage

import { OrbitRadar } from "@/components/uibrik/orbit-radar/orbit-radar";

<OrbitRadar />

Installation

npx shadcn@latest add https://uibrik.com/r/orbit-radar.json
Adds the files to components/uibrik/orbit-radar and installs @number-flow/react, @tabler/icons-react, motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/orbit-radar.

Props

OrbitRadar
title
Type string
"Product scorecard"
Names what is plotted.
max
Type number
100
Value at the outer ring.
accent
Type string
""
First shape colour. Empty uses the chart palette.
axes
Type string[]
–
One name per spoke, 3 to 8, clockwise from the top.
sets
Type { key: string; label: string; values: number[]; color?: string }[]
–
The shapes to draw, each with a value per axis.
format
Type Intl.NumberFormatOptions
{}
Formats every number.
onActiveChange
Type (index: number | null) => void
–
Called with the axis under the cursor.
className
Type string
–
Classes for the outer shell.