shadcn.io is not affiliated with official shadcn/ui
Radar Chart Capability Trio Features Block for React
One large radar of five axes with the previous release dashed and the latest run solid, three suite tabs that cross-fade the polygons, and a list of every axis score and how far it moved.
Installation
Overview
A radar-chart features section for React with Base UI. One large radar scores a model on five axes (accuracy, latency, cost, safety, coverage), with the previous release as a dashed outline and the latest run as a solid, lightly filled one. Three tabs (Chat, Code, Agents) swap the suite: the polygons cross-fade in place, and beside the chart a list gives every axis its score and how far it moved since the release before. The radar sits in a framed figure on the start side and the tabs and scores on the end side, with one solid divider between them; below lg the tabs come first, then the radar, then the scores. The polygons are computed from the scores, so there is no chart library. It's built from Tabs, Data List, Badge and Guides, and it follows your theme. For model evaluations, benchmarks, scorecards and any comparison of a few things on the same few axes.
FAQ
How do I change the suites, axes and scores?
Edit AXES and SUITES at the top of the file: each suite has its name, a sentence and two lists of scores out of 100, before and now, one per axis in the order of AXES. The rings, spokes, polygons, label positions and the deltas in the list are all derived from those, by small functions. For a different number of axes, add or remove a label and a score in each suite; the geometry follows.
How is the radar drawn?
In SVG, in a 100 by 100 box, with no chart library: each polygon's points come from the scores by simple trigonometry at module scope. The outlines keep their pixel width at any size, and the axis labels are real text positioned in percent, so they stay readable on a phone while the chart scales. The three suites' polygons are drawn together and only the chosen one is visible.
How do keyboards and screen readers get on?
The tabs are a real tab list: arrow keys move between suites. The chart is decoration and is hidden; its facts are in the list beside it, where each axis has its score and its change ("Accuracy 88, plus 4"), and in the caption, which says the scores are out of 100 and higher is better. Both the dashed and solid keys are text.
Why is higher always better, even for latency and cost?
So the shapes are comparable: the radar is easy to read only when a bigger polygon means a better one on every axis. Latency and cost are scored so that faster and cheaper score higher. If your axes have real units, show them in the list and keep the radar's scores normalised like this.
Related
- Pro
Gauge Cluster Features
Metrics and chartsThree semicircle gauges in one framed band, driven by a single "Simulate load" slider: CPU, memory and queue wait, each with a needle, an arc, a reading and a state.
- Pro
Heatmap Density Grid Features
Metrics and chartsA 24 by 12 traffic density grid in a framed figure with a legend, three numbered callout cells, and the callouts described beside it, for a traffic observability tool.
- Pro
Command Center Metric Board Features
Metrics and chartsA metrics console in a card in a card that follows your theme: six metric tiles with a value, a signed change and a sparkline are the tabs of one tablist, and choosing one opens a larger chart of its series in a strip below.
- Pro
Analytics Widget Dashboard Features
Metrics and chartsA job-queue dashboard drawn as a window in a hairline frame: a range control in its title bar re-draws the throughput line and re-reads the uptime and outcome figures, beside a seven-bar week.
- Pro
Radar Chart Pricing
Charts and figuresThree database plans, each led by a radar chart of six capability scores that shows the plan's shape at a glance, over its price, call to action and real limits. A snap carousel on phones.
- Pro
Pipeline Step Diagram Features
Diagrams and mapsA CI pipeline drawn as five stages joined by chevrons, each with its time and status, over a band that measures the pipeline's impact with rolling numbers.