Font Awesome Build Awesome
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Search this website ⌘KCtrl+K Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme View Project on GitHub Star Project on GitHub
Start Components Docs Help
Login Log into your account
Web Awesome Font Awesome Build Awesome
Search this site… /
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme

Getting Started

  • Installation
  • Usage
  • Forms
  • Localization
  • Frameworks
  • Using with AI
  • Figma Design Kit ProThis requires access to Web Awesome Pro
  • Server Rendering

Resources

  • Accessibility
  • Browser Support
  • Contributing
  • Patterns ProPatterns require access to Web Awesome Pro
  • Migrating from Shoelace
  • Visual Tests
  • Changelog
  • Help & Support

Theming & Utilities

  • Overview
  • Built-in Themes
  • Color Palettes
  • Design Tokens
  • Customizing & Theming
  • CSS Utilities

Actions

  • Button
  • Button Group
  • Copy Button
  • Dropdown
    • Dropdown Item

Forms

  • Checkbox
  • Checkbox Group
  • Color Picker
  • Combobox ProThis requires access to Web Awesome Pro
  • Date Input ProThis requires access to Web Awesome Pro
  • Date Picker ProThis requires access to Web Awesome Pro
  • File Input ProThis requires access to Web Awesome Pro
  • Input
  • Known Date
  • Number Input
  • OTP Input
  • Radio Group
    • Radio
  • Rating
  • Select
    • Option
  • Slider
  • Switch
  • Textarea
  • Time Input

Layout

  • Accordion
    • Accordion Item
  • Card
  • Details
  • Dialog
  • Divider
  • Drawer
  • Page
  • Scroller
  • Split Panel

Navigation

  • Breadcrumb
    • Breadcrumb Item
  • Pagination
  • Tab Group
    • Tab
    • Tab Panel
  • Tree
    • Tree Item

Feedback

  • Badge
  • Callout
  • Progress Bar
  • Progress Ring
  • Skeleton
  • Spinner
  • Tag
  • Toast
    • Toast Item
  • Tooltip

Media

  • Animated Image
  • Avatar
  • Carousel
    • Carousel Item
  • Comparison
  • Icon
  • Markdown
  • QR Code
  • Video ProThis requires access to Web Awesome Pro
  • Video Playlist ProThis requires access to Web Awesome Pro
  • Zoomable Frame

Data Viz ProThis requires access to Web Awesome Pro

  • Bar Chart
  • Bubble Chart
  • Data Grid
  • Doughnut Chart
  • Line Chart
  • Pie Chart
  • Polar Area Chart
  • Radar Chart
  • Scatter Chart
  • Sparkline
  • Advanced Usage

Helpers

  • Animation
  • Format Bytes
  • Format Date
  • Format Number
  • Include
  • Intersection Observer
  • Mutation Observer
  • Popover
  • Popup
  • Random Content
  • Relative Time
  • Resize Observer

Radar Chart

  • Examples
  • Providing Data with JSON
  • Providing Data with JavaScript
  • Multiple Datasets
  • Fill Area
  • Colors
  • Border Width
  • Point Radius
  • Legend
  • Disabling Features
  • API
  • Importing
  • Slots
  • Attributes & Properties
  • CSS Custom Properties
On This Page...
  • Examples
  • Providing Data with JSON
  • Providing Data with JavaScript
  • Multiple Datasets
  • Fill Area
  • Colors
  • Border Width
  • Point Radius
  • Legend
  • Disabling Features
  • API
  • Importing
  • Slots
  • Attributes & Properties
  • CSS Custom Properties

Radar Chart

<wa-radar-chart>
ProIncluded with Web Awesome Pro Stable Data Viz Since 3.3

Radar charts compare multiple variables at once by plotting data on a radial grid. They are well-suited for comparing profiles across several dimensions, such as skill assessments, product attributes, or performance metrics.

Get Radar Chart with Web Awesome Pro! Subscribing to Web Awesome Pro gives you every Pro component, plus premium themes, color tools, team collaboration, and more.
  • Pro Components
  • Native Styles
  • CSS + Layout Utilities
  • Ever-Growing Pattern Library
  • Unlimited Hosted Projects
  • Pre-Built Pro Themes
  • Pro Theme Builder
  • Pro Color Tools
  • Official Figma Design Kit
  • WA Pro Perpetual License
  • Actual Human™ Support
Get Web Awesome Pro + Radar Chart!

Already have Pro? Log in

<wa-radar-chart label="Employee Skills" description="A radar chart comparing skill levels across six categories">
  <script type="application/json">
    {
      "data": {
        "labels": ["Communication", "Technical", "Leadership", "Creativity", "Teamwork", "Problem Solving"],
        "datasets": [
          {
            "label": "Alice",
            "data": [85, 92, 70, 88, 95, 78],
            "fill": true,
            "backgroundColor": "color-mix(in srgb, var(--wa-color-red-60) 20%, transparent)",
            "borderColor": "var(--wa-color-red-60)"
          },
          {
            "label": "Bob",
            "data": [72, 78, 90, 65, 80, 88],
            "fill": true,
            "backgroundColor": "color-mix(in srgb, var(--wa-color-blue-60) 20%, transparent)",
            "borderColor": "var(--wa-color-blue-60)"
          }
        ]
      }
    }
  </script>
</wa-radar-chart>

See <wa-chart> for advanced configuration, custom plugins, and direct Chart.js access.

Examples

Link to This Section

Providing Data with JSON

Link to This Section

Place a <script type="application/json"> tag inside the component with your chart data. Each value in the data array maps to a label on the radial axis. The JSON follows the Chart.js configuration format.

<wa-radar-chart
  label="Feature Comparison"
  description="A radar chart comparing features of a product across five dimensions"
>
  <script type="application/json">
    {
      "data": {
        "labels": ["Speed", "Reliability", "Ease of Use", "Features", "Support"],
        "datasets": [
          {
            "label": "Product A",
            "data": [85, 90, 75, 80, 70]
          }
        ]
      }
    }
  </script>
</wa-radar-chart>

Providing Data with JavaScript

Link to This Section

Set the config property from JavaScript when your data comes from code rather than static markup. The chart re-renders automatically each time you assign it. For data that updates at runtime, try the live controls in Accessing the Chart.js Instance.

<wa-radar-chart id="radar-js-example" label="Feature Comparison" description="A radar chart comparing product features">
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-js-example');

  chart.config = {
    data: {
      labels: ['Speed', 'Reliability', 'Ease of Use', 'Features', 'Support'],
      datasets: [
        {
          label: 'Product A',
          data: [85, 90, 75, 80, 70],
        },
      ],
    },
  };
</script>

config is shallowly reactive.
If you mutate the object in place, reassign it to trigger a re-render.

Multiple Datasets

Link to This Section

Add multiple datasets to overlay profiles for direct comparison.

<wa-radar-chart
  id="radar-multi"
  label="Product Comparison"
  description="A radar chart comparing two products across several dimensions"
>
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-multi');

  chart.config = {
    data: {
      labels: ['Speed', 'Reliability', 'Ease of Use', 'Features', 'Support', 'Value'],
      datasets: [
        { label: 'Nimbus', data: [85, 90, 75, 80, 70, 88] },
        { label: 'Atlas', data: [70, 80, 90, 85, 92, 75] },
      ],
    },
  };
</script>

Fill Area

Link to This Section

Set fill to true on each dataset to fill the area under the radar lines. This makes it easier to see the overall shape and overlap of each profile.

<wa-radar-chart
  id="radar-filled"
  label="Team Assessment"
  description="A filled radar chart comparing two team members across skill areas"
>
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-filled');

  chart.config = {
    data: {
      labels: ['Frontend', 'Backend', 'DevOps', 'Testing', 'Design', 'Communication'],
      datasets: [
        {
          label: 'Alice',
          data: [90, 75, 60, 80, 85, 92],
          fill: true,
          backgroundColor: 'color-mix(in srgb, var(--wa-color-red-60) 20%, transparent)',
          borderColor: 'var(--wa-color-red-60)',
        },
        {
          label: 'Bob',
          data: [70, 92, 85, 88, 60, 78],
          fill: true,
          backgroundColor: 'color-mix(in srgb, var(--wa-color-blue-60) 20%, transparent)',
          borderColor: 'var(--wa-color-blue-60)',
        },
      ],
    },
  };
</script>

Colors

Link to This Section

Override the default color palette using the --fill-color-* and --border-color-* CSS custom properties on the component.

<wa-radar-chart
  id="radar-colors"
  label="Custom Colors"
  description="A radar chart with custom colors"
  style="
    --fill-color-1: color-mix(in srgb, var(--wa-color-purple-60) 50%, transparent);
    --border-color-1: var(--wa-color-purple-60);
    --fill-color-2: color-mix(in srgb, var(--wa-color-orange-60) 50%, transparent);
    --border-color-2: var(--wa-color-orange-60);
  "
>
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-colors');

  chart.config = {
    data: {
      labels: ['Courage', 'Wisdom', 'Stealth', 'Cooking', 'Second Breakfast'],
      datasets: [
        { label: 'Frodo', data: [82, 78, 85, 45, 70] },
        { label: 'Samwise', data: [92, 65, 55, 95, 90] },
      ],
    },
  };
</script>

Border Width

Link to This Section

Use the --line-border-width CSS custom property to control the thickness of the radar lines.

<wa-radar-chart
  id="radar-border"
  style="--line-border-width: 4px"
  label="Thick Lines"
  description="A radar chart with thicker lines"
>
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-border');

  chart.config = {
    data: {
      labels: ['Aroma', 'Body', 'Acidity', 'Sweetness', 'Aftertaste'],
      datasets: [
        {
          label: 'Morning Roast',
          data: [85, 70, 60, 78, 82],
        },
      ],
    },
  };
</script>

Point Radius

Link to This Section

Use the --point-radius CSS custom property to control the size of the dots drawn at each vertex. Set it to 0 to hide them entirely.

<wa-radar-chart
  id="radar-points"
  style="--point-radius: 6px"
  label="Large Points"
  description="A radar chart with larger vertex dots"
>
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-points');

  chart.config = {
    data: {
      labels: ['Protein', 'Fiber', 'Vitamin C', 'Calcium', 'Iron'],
      datasets: [
        {
          label: 'Berry Smoothie',
          data: [55, 80, 95, 60, 70],
        },
      ],
    },
  };
</script>

Legend

Link to This Section

Use the legend-position attribute to control where the legend appears. Add without-legend to hide it entirely.

<wa-radar-chart
  id="radar-legend"
  legend-position="bottom"
  label="Legend at Bottom"
  description="A radar chart with the legend at the bottom"
>
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-legend');

  chart.config = {
    data: {
      labels: ['Strength', 'Agility', 'Intelligence', 'Wisdom', 'Charisma'],
      datasets: [
        { label: 'Warrior', data: [95, 70, 50, 60, 65] },
        { label: 'Mage', data: [40, 55, 95, 90, 70] },
      ],
    },
  };
</script>

Disabling Features

Link to This Section

Use without-tooltip to hide hover tooltips and without-animation to disable transitions.

<wa-radar-chart
  id="radar-disabled"
  without-tooltip
  without-animation
  label="Minimal"
  description="A radar chart with tooltips and animations disabled"
>
</wa-radar-chart>
<script type="module">
  const chart = document.querySelector('#radar-disabled');

  chart.config = {
    data: {
      labels: ['Performance', 'Battery', 'Display', 'Portability', 'Value'],
      datasets: [
        {
          label: 'Ultrabook 14',
          data: [80, 90, 75, 95, 70],
        },
      ],
    },
  };
</script>

API

Link to This Section

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/radar-chart/radar-chart.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/radar-chart/radar-chart.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/radar-chart/radar-chart.js';

To import this component for React 18 or below, use the following code:

import WaRadarChart from '@awesome.me/webawesome/dist/react/radar-chart/index.js';

Slots

Link to This Section

Learn more about using slots.

Name Description
(default) An optional <script type="application/json"> element containing the Chart.js configuration object.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

Name Description Reflects
config
The Chart.js configuration object. Setting this property will automatically re-render the chart.
Type ChartJS['config']
description
description
A description of the chart, used for accessibility.
Type string | null
Default null
grid
grid
Which axes to show grid lines on.
Type 'x' | 'y' | 'both' | 'none'
Default 'both'
indexAxis
index-axis
The base axis of the dataset. 'x' for vertical bars and 'y' for horizontal bars.
Type 'x' | 'y'
Default 'x'
label
label
A label for the chart, used for accessibility.
Type string | null
Default null
legendPosition
legend-position
The position of the legend relative to the chart.
Type LayoutPosition | 'start' | 'end'
Default 'top'
max
max
The maximum value for the value axis.
Type number | null
Default null
min
min
The minimum value for the value axis.
Type number | null
Default null
plugins
plugins
Additional Chart.js plugins to register for this chart instance.
Type array
Default []
stacked
stacked
Stacks datasets on top of each other along the value axis.
Type boolean
Default false
type
type
The type of chart to render. Valid types include bar, line, pie, doughnut, polarArea, radar, scatter, and bubble.
Type ChartType
Default 'radar'
withoutAnimation
without-animation
Disables chart animations
Type boolean
Default false
withoutLegend
without-legend
Hides the legend
Type boolean
Default false
withoutTooltip
without-tooltip
Hides tooltips over data points
Type boolean
Default false
xLabel
x-label
A label for the x-axis.
Type string | null
Default null
yLabel
y-label
A label for the y-axis.
Type string | null
Default null

CSS Custom Properties

Link to This Section

Learn more about CSS custom properties.

Name Description
--border-color-1
Border color for the first dataset.
Default var(--wa-color-blue-60)
--border-color-2
Border color for the second dataset.
Default var(--wa-color-pink-60)
--border-color-3
Border color for the third dataset.
Default var(--wa-color-green-60)
--border-color-4
Border color for the fourth dataset.
Default var(--wa-color-yellow-60)
--border-color-5
Border color for the fifth dataset.
Default var(--wa-color-purple-60)
--border-color-6
Border color for the sixth dataset.
Default var(--wa-color-orange-60)
--border-radius
Border radius for bar charts.
Default var(--wa-border-radius-s)
--border-width
Border width for bars and arcs.
Default var(--wa-border-width-s)
--fill-color-1
Fill color for the first dataset.
Default color-mix(in srgb, var(--wa-color-blue-60) 40%, transparent)
--fill-color-2
Fill color for the second dataset.
Default color-mix(in srgb, var(--wa-color-pink-60) 40%, transparent)
--fill-color-3
Fill color for the third dataset.
Default color-mix(in srgb, var(--wa-color-green-60) 40%, transparent)
--fill-color-4
Fill color for the fourth dataset.
Default color-mix(in srgb, var(--wa-color-yellow-60) 40%, transparent)
--fill-color-5
Fill color for the fifth dataset.
Default color-mix(in srgb, var(--wa-color-purple-60) 40%, transparent)
--fill-color-6
Fill color for the sixth dataset.
Default color-mix(in srgb, var(--wa-color-orange-60) 40%, transparent)
--grid-border-width
Border width for chart grid lines and axis borders.
Default var(--wa-border-width-s)
--grid-color
Color of the chart grid lines and axis borders.
Default var(--wa-color-neutral-border-quiet)
--line-border-width
Border width for line and radar charts.
Default var(--wa-border-width-m)
--point-radius
Radius of data point dots.
Default var(--wa-border-width-m)
Need a hand? Report a bug Ask for help
Go Make Something Awesome
Version 3.12.0 © Fonticons, Inc.
  • Terms
  • Privacy
  • Refunds
  • Core License
  • Pro License

Quick Links

  • Components
  • CSS Utilities
  • Theming
  • Using with AI
  • Changelog
  • Help & Support

Recent Searches

    D'oh! No results for “”

    Suggest on GitHub Ask on Discord
    Navigate Select
    Close Esc

    We Have Cookies…

    We use cookies to make webawesome.com work better by storing limited information about your usage.

    We value your privacy, so we won't use them for evil or ask you to join the dark side.

    Customize
    Necessary Only Accept All
    Strictly Necessary
    Required to make the site function correctly — cannot be turned off
    Functionality Analytics
    Cancel Confirm Cookie Choices