NERV-UI DOCS
inspection terminal
live
doc.access // online
NERV COMPONENT INSPECTION
route integrity monitored

Pie Chart

Animated pie or donut chart with crosshair grid, glow effects, and optional legend. SVG-based with per-slice color override. Four color palettes available.

[SRC]tsx
1import { PieChart } from "@mdrbx/nerv-ui";

Pie Chart

PIEinspection frame
live inspectionframe-01
ANGEL ENCOUNTERS BY TYPE
HUMANOID: 6 (38%)GEOMETRIC: 3 (19%)ORGANIC: 4 (25%)HYBRID: 2 (13%)UNKNOWN: 1 (6%)38%19%25%13%6%
HUMANOID38%
GEOMETRIC19%
ORGANIC25%
HYBRID13%
UNKNOWN6%

Donut Chart

DONUTinspection frame
live inspectionframe-01
RESOURCE DISTRIBUTION
MAGI-1: 40 (40%)MAGI-2: 35 (35%)MAGI-3: 25 (25%)10040%35%25%
MAGI-140%
MAGI-235%
MAGI-325%

Color Themes

THEMESinspection frame
live inspectionframe-01
A: 3 (30%)B: 5 (50%)C: 2 (20%)30%50%20%
A30%
B50%
C20%
A: 3 (30%)B: 5 (50%)C: 2 (20%)30%50%20%
A30%
B50%
C20%

Props

PropTypeDefaultDescription
slices*PieSlice[]Array of { label, value, color? }
titlestringChart title
sizenumber180Chart size in pixels
donutbooleanfalseHollow center mode
showLegendbooleantrueShow color legend
showLabelsbooleantrueShow % labels on slices
color"cyan" | "green" | "orange" | "mixed""mixed"Color palette
classNamestring""Additional CSS classes
[i]HOVER LABELS

Hovering a slice or legend row dims the other segments, adds a pointer affordance, and opens an in-surface tooltip with the label, raw value, and computed percentage.

[i]CROSSHAIR GRID

The chart background features concentric circles and crosshair lines for that targeting computer aesthetic. Slices animate in with staggered scale transitions.