Charts plus JS behaviour

Radar chart

A spider chart with several series over shared spokes: grid rings, shapes spring out from the centre, arrow keys read the spokes one by one, and in RTL the spokes run counter-clockwise.

Real scenarios

The component as it is used in a product — not a specimen grid.

Model scorecard

Six skills, two releases, a fixed rim of 100 and five rings. The shapes spring out from the centre one after another; hover a spoke (or focus the chart and use the arrow keys) to read every release on that skill. On a Persian page the spokes run counter-clockwise.

Support model v2 vs v1

Support model v2 vs v1
v2v1
Speed8872
Accuracy9280
Cost6478
Persian9570
Coding8166
Safety9084

Interview panel

Three interviewers on a 5-point scale. Switch an interviewer off in the legend to compare the other two; the hidden shape fades and shrinks rather than vanishing.

Candidate: senior frontend

Candidate: senior frontend
SaraRezaMina
Architecture453
Accessibility534
Teamwork445
Code quality454
Communication345

Important props

Important props
Prop Type Default What it does
axes / series array [] One name per spoke, and the series (one value per spoke).
max / rings number / int auto / 4 The rim’s value (a round number above the data by default) and the ring count.
size / hidden-series / dir int / array / string 340 / [] / auto Drawing size, series off at start and a forced direction.

Snippet

<x-nx::radar-chart title="کارنامهٔ مدل‌ها" :max="100" rings="5"
    :axes="['سرعت', 'دقت', 'هزینه', 'فارسی', 'کدنویسی', 'ایمنی']"
    :series="[
        ['name' => 'نسخهٔ ۲', 'values' => [88, 92, 64, 95, 81, 90]],
        ['name' => 'نسخهٔ ۱', 'values' => [72, 80, 78, 70, 66, 84]],
    ]" />