Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Radar Chart Pricing Block for React

Three 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.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Show the shape of every plan with this radar chart pricing section, shown here for Loam DB, a serverless database. Under a compact header, three plans sit side by side in cells that share their hairlines, between the page's side rails, with a + mark on the corners of the row. Each cell leads with a hexagonal radar chart drawn as an inline SVG, scoring the plan out of 10 on six axes (Connections, Compute, Storage, Backups, Support and Branches), with guide rings, a shape filled in the text colour and a dot on each score. On load each shape grows out of the chart's centre and its dots pop in, with CSS transitions only. Under the chart sit the monthly price, a Shine Button and a checklist of the plan's real limits, so the chart is the headline and the numbers stay honest. The recommended Launch plan is set apart by structure, not colour: a tinted cell, a Most popular outline Badge and the one primary button. Below lg the plans become a snap carousel, Launch first, with the next card peeking and a row of dots that name each plan. Built with Badge, Shine Button, Guides, inline SVG and Lucide icons. For database, platform and developer-tool pricing where a capability profile helps buyers pick a tier.

FAQ

How do I change the axes and each plan's scores?

DIMENSIONS lists the axes, clockwise from the top, each with a key and a label. Each plan in PLANS has a scores object with a value from 0 to 10 per key, and the shape, its dots and the chart's description are all worked out from those numbers. The geometry adapts to the number of axes, so five or seven work too; keep labels short, because VIEW_BOX leaves about 60 units beside the chart for them.

What do the scores mean, and are they real numbers?

They're relative ratings you set, not measurements: a 7 on Connections means "well above the plan below it", not 7,000 connections. That's why each plan's real limits are listed under the chart (10 GB, 2 vCPU, 1,000 pooled connections) and the header says the scores are relative. Rate the axes on the same basis for every plan, and write the actual limit next to any score a buyer might want to check.

How does the carousel work on a phone?

Below lg the plans sit in a row you swipe sideways, each card snapping to the middle, the popular plan first and the next card peeking so it's clear there's more. The dots under it are buttons named for each plan (Launch, Hobby, Scale): the one in view is marked and pressing another scrolls its card into view, smoothly unless the visitor prefers reduced motion. Cards are 85% of the width on a phone and about half from sm, and the carousel is a labelled list whose cards each hold a link, so the keyboard reaches every plan and the browser scrolls it into view.

How do I connect the plan buttons to checkout?

Each call to action is a real link to its plan's href, for example /checkout?plan=launch; the chart is only an illustration and plays no part in billing. It's ShineButton with render={<a href={plan.href} />} and nativeButton={false}.

Can screen reader users read the charts?

Yes. Each chart is an image (role="img") whose name lists every score, as in "Launch plan capability scores: Connections 7 out of 10, Compute 5 out of 10…", so the information isn't locked in the drawing, and the limits are in a real list under it. Plans are h3 headings under the section's h2, prices read as "$29 per month", and each call to action names its plan. The labels inside the chart are 12 pixels tall at full size.

Does the chart work in right-to-left layouts?

The cards, text and buttons follow the page's direction, but the chart itself is drawn the same way in both: its box is set to left-to-right so the labels keep their places around the hexagon. The axes are a drawing, not reading order, so mirroring them would only move each label away from its own corner. The carousel does follow the direction: it starts from the right edge and the card that's in view is found by its position, not by scroll offset.

When should I use radar charts instead of a feature table?

Use radar charts when plans differ by degree on a few dimensions that all matter, such as storage, compute and support, and buyers want to see which shape fits them. Use a feature table when the differences are yes-or-no and buyers need to check specific features row by row: a radar chart summarises, a table proves.

  • Pro

    Treemap Quota Pricing

    Charts and figures

    Three platform plans, each led by a treemap whose tile areas show how its price splits across compute, memory, storage and bandwidth, over the price, a call to action and the quotas. A snap carousel on phones.

  • Pro

    Feature Heatmap Pricing

    Comparison tables

    A feature heatmap that grades three course-platform plans from 0 to 3 on seventeen features in greys, with the legend in the header row, plan prices and calls to action as the first row, and a plan switch on phones.

  • Pro

    Three virtual-server plans laid out like a technical datasheet on the page column: a column per plan with its size, price and call to action, then grouped rows of monospaced specs on shared hairlines, and a plan switch on phones.

  • Pro

    Video hosting plans plotted as bubbles by monthly price and cost per hour of viewing, sized by storage: each bubble is a radio button, and the cell beside the chart shows the chosen plan.

  • Pro

    Comparison Table Pricing

    Comparison tables

    Four plans compared feature by feature in one table whose hairlines meet the page rails, with a billing switch, a tinted popular column and, on a phone, a plan switch that keeps the feature column beside one plan.

  • Pro

    The canonical three-column pricing section for a team knowledge base: Personal, Team and Company cells under a monthly and yearly switch, each outlined by hairlines that overshoot its corners, the recommended plan raised, one plan at a time on phones.