Skip to content
animorio
IT
Back to the library

AI model radar chart

SVG, HoverGSAPMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

An SVG animation on a real panel: the eval card of an invented AI lab, a radar chart with six suites. The rings and the axes draw themselves from the middle, then both shapes grow vertex by vertex, each on a spring of its own. A beam of light turns to the suite under the pointer, the card's edge catches it and a glass tooltip glides to the vertex with the rolling score and the gain. Switching the comparison, the dashed shape morphs one vertex after the other.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "AI model radar chart" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>The radar chart of AI models compared</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the eval card of an invented AI lab: a radar chart with six test suites. The new model is a glowing gradient
         shape, the one it is compared with a dashed outline. A soft beam of light turns to the suite under the
         pointer, the card's edge catches it and a glass tooltip glides to the vertex with the score and the gain -->
    <article class="card" data-card>
      <span class="card__rim" aria-hidden="true"></span>
      <header class="card__head">
        <div class="card__title">
          <span class="card__eyebrow">Arko evals</span>
          <span class="card__name">Arko 4</span>
        </div>
        <div class="seg" role="group" aria-label="Compare with">
          <span class="seg__thumb" data-thumb aria-hidden="true"></span>
          <button class="seg__btn is-on" type="button" data-cmp="0" aria-pressed="true"><span class="seg__face">vs 3.5</span></button>
          <button class="seg__btn" type="button" data-cmp="1" aria-pressed="false"><span class="seg__face">vs Mini</span></button>
        </div>
      </header>

      <div class="radar" data-radar>
        <svg class="radar__svg" data-svg viewBox="-118 -118 236 236" aria-hidden="true">
          <defs>
            <linearGradient id="rgMain" gradientUnits="userSpaceOnUse" x1="-100" y1="-90" x2="100" y2="90">
              <stop offset="0" stop-color="var(--violet)"/>
              <stop offset="1" stop-color="var(--cyan)"/>
            </linearGradient>
            <linearGradient id="rgFill" gradientUnits="userSpaceOnUse" x1="-100" y1="-90" x2="100" y2="90">
              <stop offset="0" stop-color="var(--violet)" stop-opacity="0.34"/>
              <stop offset="1" stop-color="var(--cyan)" stop-opacity="0.16"/>
            </linearGradient>
            <radialGradient id="rgBeam" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="108">
              <stop offset="0" stop-color="var(--cyan)" stop-opacity="0"/>
              <stop offset="0.4" stop-color="var(--violet)" stop-opacity="0.08"/>
              <stop offset="0.82" stop-color="var(--cyan)" stop-opacity="0.2"/>
              <stop offset="1" stop-color="var(--cyan)" stop-opacity="0"/>
            </radialGradient>
            <linearGradient id="rgAxis" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="0" y2="-104">
              <stop offset="0" stop-color="#ffffff" stop-opacity="0"/>
              <stop offset="0.7" stop-color="var(--cyan)" stop-opacity="0.75"/>
              <stop offset="1" stop-color="#ffffff" stop-opacity="0.95"/>
            </linearGradient>
            <filter id="rgSoft" x="-60%" y="-60%" width="220%" height="220%">
              <feGaussianBlur stdDeviation="7"/>
            </filter>
            <filter id="rgGlow" x="-40%" y="-40%" width="180%" height="180%">
              <feGaussianBlur stdDeviation="5"/>
            </filter>
          </defs>
          <g class="radar__rings" data-rings></g>
          <g class="radar__axes" data-axes></g>
          <g class="radar__beam" data-beam>
            <path class="radar__wedge" data-wedge fill="url(#rgBeam)" filter="url(#rgSoft)"/>
            <line class="radar__ray" x1="0" y1="0" x2="0" y2="-104" stroke="url(#rgAxis)"/>
          </g>
          <path class="radar__base" data-base/>
          <path class="radar__glow" data-glow filter="url(#rgGlow)"/>
          <path class="radar__fill" data-fill fill="url(#rgFill)"/>
          <path class="radar__line" data-line stroke="url(#rgMain)"/>
          <g data-dots></g>
          <circle class="radar__halo" data-halo r="7"/>
        </svg>
        <div class="radar__labels" data-labels></div>
        <div class="tip" data-tip aria-hidden="true">
          <div class="tip__glass">
            <span class="tip__name" data-tip-name>Coding</span>
            <span class="tip__row">
              <span class="tip__score" data-tip-score>91.2</span>
              <span class="tip__delta" data-tip-delta-wrap>
                <svg viewBox="0 0 10 10" aria-hidden="true"><path class="tip__arrow" data-tip-arrow d="M5 8V2.4M2.4 4.8L5 2.2l2.6 2.6"/></svg>
                <span data-tip-delta>8.5</span>
              </span>
            </span>
            <span class="tip__vs" data-tip-vs>vs 82.7 on Arko 3.5</span>
          </div>
        </div>
      </div>

      <footer class="legend">
        <span class="legend__item">
          <span class="legend__swatch" aria-hidden="true"></span>
          <span class="legend__name">Arko 4</span>
          <span class="legend__num" data-avg-main>86.8</span>
        </span>
        <span class="legend__item">
          <span class="legend__swatch legend__swatch--base" aria-hidden="true"></span>
          <span class="legend__name" data-base-name>Arko 3.5</span>
          <span class="legend__num" data-avg-base>77.4</span>
        </span>
        <span class="legend__gain">
          <svg viewBox="0 0 10 10" aria-hidden="true"><path d="M5 8V2.4M2.4 4.8L5 2.2l2.6 2.6"/></svg>
          <span data-gain>9.3</span><span class="legend__gain-unit">avg</span>
        </span>
      </footer>
    </article>
    <p class="sr" aria-live="polite" data-live></p>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

33 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “AI model radar chart” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a near black page with two soft lights, violet and cyan, and a little grain, a dark card with round corners and a one pixel edge rises: at the top ‘Arko evals’ and ‘Arko 4’, on the right a two way switch, ‘vs 3.5’ and ‘vs Mini’, with a glass pill under the chosen one. In the middle the hexagonal rings of the radar chart draw themselves from the centre outwards, then the six axes, and around them the names of the suites appear: Reasoning, Coding, Math, Vision, Context, Tools. From the centre the grey dashed shape of Arko 3.5 grows, then the one of Arko 4, with its outline in a violet to cyan gradient, a glow beneath and a coloured veil inside: every vertex arrives on a spring of its own, one after the other, and passes its score by a hair before settling. Below, the legend rolls the averages, 86.8 and 77.4, and the mint gain, +9.3. Then a beam of light turns from the centre to Coding: the ray on the axis lights up, the name gains weight and widens, the card's edge lights up right on that side and a glass tooltip glides to the vertex with 91.2, the arrow and +8.5, ‘vs 82.7 on Arko 3.5’. The beam moves to Math and Tools turning on a spring, and the tooltip follows. The switch is pressed on ‘vs Mini’: the pill slides with a small bounce, the dashed shape morphs vertex after vertex starting from the lit suite, the name in the legend changes with a blur and the digits roll. The beam goes to Vision and Reasoning, fades out and the comparison goes back to 3.5. With the pointer the nearest suite lights up, on a phone with a finger; the names and the switch work from the keyboard too.

How it works

A hexagon in polar coordinates

Each suite is an axis at the angle i·60°, with the direction (sin a, −cos a) so the first one sits at the top. A score becomes a radius with R·(v − FLOOR)/(100 − FLOOR): starting from 50 instead of zero widens the differences between the models, which all sit between 68 and 92. Rings, axes and shapes are paths in the same 236 unit square.

Rings that draw themselves

Every ring and every axis has pathLength="1": with stroke-dasharray 1 1 and stroke-dashoffset from 1 to 0 everything draws itself, whatever its real length. The rings start from the smallest, 70 ms apart, and the axes right after, from the centre outwards.

A spring for every vertex

The twelve vertices of the two shapes each have their own spring (STIFFNESS, DAMPING), integrated in three steps per frame. The script only changes each one's goal, STAGGER seconds after the previous one, and redraws the paths every frame: the shapes grow in a wave and every tip passes its score by a hair. Switching the comparison, the wave starts from the lit suite and runs both ways.

The beam and the edge that catches the light

The beam is a wedge with a radial gradient, turned with rotate() by a spring on the angle: the goal always moves the short way round, so from Tools to Reasoning it turns 60° and not 300°. The same angle goes to the card's edge as a CSS variable: a one pixel ring, made with a mask, coloured by a conic-gradient that starts there.

The gliding tooltip

The tooltip is HTML over the SVG: its position comes from the lit vertex, turned into pixels with the chart's scale, and placed on the side of the centre so it never covers the name. A second spring carries it there, so it glides from one vertex to the next instead of jumping; the digits roll with a tween on a number.

Values to change

NameFileDefaultWhat it changes
STIFFNESSscript.js150The spring of every vertex: higher is quicker.
DAMPINGscript.js13Lower lets the vertices pass their score and come back.
STAGGERscript.js0.07Seconds between one vertex and the next.
BEAMscript.js1How bright the beam is (0 = no beam).
BEAM_WIDTHscript.js22Half the opening of the beam, in degrees.
GLOWscript.js0.4How much the new model's outline glows.
FLOORscript.js50The score at the centre of the chart (the outer ring is 100).
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the walk on its own.

Try them in the Playground

When to use it

For the results page of an AI model, for a dashboard that compares products, plans or teams on several qualities, for a skills profile in a portfolio or a hiring app: when the numbers are few but on several axes and the shape matters as much as the detail.

On phones

The same animation with adapted sizes: the card is as wide as the screen, the chart is as tall as the height allows and is sized on its shorter side, the names and the tooltip are placed again on every resize; a finger lights the nearest suite just like the pointer.

With reduced motion

No springs and no growing shapes: the card fades in with the chart already drawn, the beam and the tooltip fade in and out already in place, the digits change without rolling.

Pitfalls

  • With vector-effect: non-scaling-stroke the pathLength dashes are worked out on screen and the drawing of the rings breaks: it is used only on the lines that do not draw themselves.
  • The angle's spring has to be driven the short way round, otherwise going from Tools to Reasoning the beam turns almost a full circle backwards.
  • Near the edge the tooltip has to be kept inside the chart's box, or on a phone it leaves the card at the top and the bottom.
  • A path's gradient can be used from another SVG, but with gradientUnits="userSpaceOnUse" it follows the first one's coordinates: in the legend the swatch is a CSS gradient.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.

Testing

Tested on 3 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations