> To build a Wix site agentically, or add Wix features like bookings or a store to a site you already have, follow https://www.wix.com/headless/skill.md
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: RadarChart Component

## Article: RadarChart Component

## Article Link: https://dev.wix.com/docs/wix-design-system/components/charts/radar-chart-component.md

## Article Content:

# RadarChart

_Components/Charts/RadarChart_

Interactive docs page: <https://wix-pages.com/design-system-documentation/#/component/radarchart>

## Overview

```jsx
() => {
  const data = [
    {
      value: 70,
      label: 'Conversion Rate',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Total Orders',
      color: 'A1',
    },
    {
      value: 50,
      label: 'Visitors',
      color: 'A1',
    },
    {
      value: 25,
      label: '% of New Users',
      color: 'A6',
    },
    {
      value: 75,
      label: 'Av. Order Value',
      color: 'A6',
    },
    {
      value: 70,
      label: 'Site Sessions',
      color: 'A6',
    },
  ];
  const scale = [
    { value: 25, label: '25%' },
    { value: 50, label: '50%' },
    { value: 75, label: '75%' },
    { value: 100, label: '100%' },
  ];

  return (
    <StorybookComponents.Stack flexDirection="column" width="50%">
      <RadarChart data={data} scale={scale} />
    </StorybookComponents.Stack>
  );
};
```

Radar chart allows users to display how a measured item is effective in different numerical parameters. It can indicate it's relative influence to business, marketing campaigns, sales and similar criteria.

### Do

- Use it to visualise influence of multiple data parameters.
- Use it to display performance in multiple areas.

### Don't

- Don't use it to compare different data points. Use `<BarChart/>` or `<StackedBarChart/>` instead.

### Feature examples

#### Fill

Control the chart color by specifying color for each data point. It accepts the following color variables: \`A1\` (default), \`A2\`, \`A3\`, \`A4\`, \`A5\`, \`A6\`.\
\
If data points have different colors, chart will be filled with a linear gradient that is defined from the first color to the last color in the dots list.

```jsx
() => {
  const data = [
    {
      value: 70,
      label: 'Data point 1',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Data point 2',
      color: 'A1',
    },
    {
      value: 50,
      label: 'Data point 3',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Data point 4',
      color: 'A6',
    },
    {
      value: 75,
      label: 'Data point 5',
      color: 'A6',
    },
    {
      value: 70,
      label: 'Data point 6',
      color: 'A6',
    },
  ];
  const scale = [
    { value: 25, label: '25%' },
    { value: 50, label: '50%' },
    { value: 75, label: '75%' },
    { value: 100, label: '100%' },
  ];

  return <RadarChart data={data} scale={scale} />;
};
```

#### Width

Control the dimensions of a chart with \`width\` prop. Changing the width will affect component height as well - it grows in 1:1 ratio.\
\
Minimum width of a chart is 150px.

```jsx
() => {
  const data = [
    {
      value: 50,
      label: 'Data point 1',
      color: 'A1',
    },
    {
      value: 55,
      label: 'Data point 2',
      color: 'A1',
    },
    {
      value: 65,
      label: 'Data point 3',
      color: 'A6',
    },
  ];
  const scale = [
    { value: 25, label: '25%' },
    { value: 50, label: '50%' },
    { value: 75, label: '75%' },
    { value: 100, label: '100%' },
  ];

  return (
    <Box>
      <Box>
        <RadarChart data={data} scale={scale} />
      </Box>
      <Box>
        <RadarChart data={data} scale={scale} width={200} />
      </Box>
    </Box>
  );
};
```

#### Data points

Define from 3 to 10 data points to display in a chart. Available properties for each point:\
 - \`value\` - use to define a number that represents value in a chart\
 - \`label\` - use to specify a label that represents value around the chart\
 - \`color\` - use to specify data point color\
 - \`tooltipContent\` - use to define a message visible in a tooltip on a data point hover over.

```jsx
() => {
  const threeDataPoints = [
    {
      value: 50,
      label: 'Data point 1',
      color: 'A1',
    },
    {
      value: 55,
      label: 'Data point 2',
      color: 'A1',
    },
    {
      value: 65,
      label: 'Data point 3',
      color: 'A6',
    },
  ];
  const tenDataPoints = [
    {
      value: 70,
      label: 'Data point 1',
      color: 'A1',
    },
    {
      value: 70,
      label: 'Data point 2',
      color: 'A1',
    },
    {
      value: 40,
      label: 'Data point 3',
      color: 'A1',
    },
    {
      value: 70,
      label: 'Data point 4',
      color: 'A1',
    },
    {
      value: 50,
      label: 'Data point 5',
      color: 'A1',
    },
    {
      value: 30,
      label: 'Data point 6',
      color: 'A1',
    },
    {
      value: 50,
      label: 'Data point 7',
      color: 'A6',
    },
    {
      value: 65,
      label: 'Data point 8',
      color: 'A6',
    },
    {
      value: 80,
      label: 'Data point 9',
      color: 'A6',
    },
    {
      value: 55,
      label: 'Data point 10',
      color: 'A6',
    },
  ];
  const scale = [
    { value: 25, label: '25%' },
    { value: 50, label: '50%' },
    { value: 75, label: '75%' },
    { value: 100, label: '100%' },
  ];

  return (
    <Box direction="vertical" align="center">
      <Box>
        <RadarChart data={threeDataPoints} scale={scale} />
      </Box>
      <Box>
        <RadarChart data={tenDataPoints} scale={scale} />
      </Box>
    </Box>
  );
};
```

#### Label distance

Control value label distance from a chart with \`labelDistance\` prop. It support two values:\
 - \`medium\` - use it to increase the distance for better visual balance in larger charts\
 - \`small\` (default) - use in all common cases

```jsx
() => {
  const dataForSmallLabelDistance = [
    {
      value: 70,
      label: 'Small',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Small',
      color: 'A1',
    },
    {
      value: 50,
      label: 'Small',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Small',
      color: 'A6',
    },
    {
      value: 75,
      label: 'Small',
      color: 'A6',
    },
    {
      value: 70,
      label: 'Small',
      color: 'A6',
    },
  ];
  const dataForMediumLabelDistance = [
    {
      value: 70,
      label: 'Medium',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Medium',
      color: 'A1',
    },
    {
      value: 50,
      label: 'Medium',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Medium',
      color: 'A6',
    },
    {
      value: 75,
      label: 'Medium',
      color: 'A6',
    },
    {
      value: 70,
      label: 'Medium',
      color: 'A6',
    },
  ];
  const scale = [
    { value: 25, label: '25%' },
    { value: 50, label: '50%' },
    { value: 75, label: '75%' },
    { value: 100, label: '100%' },
  ];

  return (
    <Box>
      <Box width="50%" align="center" verticalAlign="middle">
        <RadarChart
          data={dataForSmallLabelDistance}
          scale={scale}
          labelDistance={24}
        />
      </Box>
      <Box width="50%" align="center" verticalAlign="middle">
        <RadarChart
          data={dataForMediumLabelDistance}
          scale={scale}
          labelDistance={48}
        />
      </Box>
    </Box>
  );
};
```

#### Scale

Define any number of scale circles in the chart with a \`scale\` array.

```jsx
() => {
  const data = [
    {
      value: 70,
      label: 'Label',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Label',
      color: 'A1',
    },
    {
      value: 50,
      label: 'Label',
      color: 'A1',
    },
    {
      value: 25,
      label: 'Label',
      color: 'A6',
    },
    {
      value: 75,
      label: 'Label',
      color: 'A6',
    },
    {
      value: 70,
      label: 'Label',
      color: 'A6',
    },
  ];
  const scale = [
    { value: 20, label: '20%' },
    { value: 40, label: '40%' },
    { value: 60, label: '60%' },
    { value: 80, label: '80%' },
    { value: 100, label: '100%' },
  ];

  return (
    <Box>
      <Box width="50%" align="center" verticalAlign="middle">
        <RadarChart data={data} />
      </Box>
      <Box width="50%" align="center" verticalAlign="middle">
        <RadarChart data={data} scale={scale} />
      </Box>
    </Box>
  );
};
```

#### Disabled

Disable all chart interactions with \`disabled\` prop. Use this as an empty state / content placeholder when there's no data yet.

```jsx
() => {
  const data = [
    {
      value: 70,
      label: 'Label',
    },
    {
      value: 25,
      label: 'Label',
    },
    {
      value: 50,
      label: 'Label',
    },
    {
      value: 25,
      label: 'Label',
    },
    {
      value: 75,
      label: 'Label',
    },
    {
      value: 70,
      label: 'Label',
    },
  ];
  const scale = [
    { value: 25, label: '25%' },
    { value: 50, label: '50%' },
    { value: 75, label: '75%' },
    { value: 100, label: '100%' },
  ];

  return <RadarChart data={data} scale={scale} disabled />;
};
```

### Common use case examples

#### Empty state

Use radar char in a disabled state as an empty state when there's not enough data to create a chart yet. It will help to let users know upfront a possible benefit of analytics you're offering.

```jsx
() => {
  const data = [
    { value: 80, label: 'Unique Visitors' },
    { value: 80, label: 'Avg. Session Duration' },
    { value: 80, label: 'Bounce Rate' },
    { value: 80, label: '% Returning Visitors' },
    { value: 80, label: '% Organic Search' },
    { value: 80, label: '% Social' },
  ];
  const scale = [
    { value: 20, label: '20%' },
    { value: 40, label: '40%' },
    { value: 60, label: '60%' },
    { value: 80, label: '80%' },
    { value: 100, label: '100%' },
  ];
  const [isTooltipVisible, setIsTooltipVisible] = React.useState(false);

  return (
    <Card>
      <Card.Header
        title={
          <Box>
            <Text weight="bold">Competition Radar</Text>
          </Box>
        }
        subtitle={
          <Text size="tiny">
            This is visual representation of your benchmarks. The more coverage
            you have, the better you're doing compared to others.
          </Text>
        }
      />
      <Card.Divider />
      <div
        style={{ position: 'relative', cursor: 'pointer' }}
        onMouseEnter={() => setIsTooltipVisible(true)}
        onMouseLeave={() => setIsTooltipVisible(false)}
      >
        <Box align="center" verticalAlign="middle">
          <RadarChart data={data} scale={scale} width={200} disabled />
        </Box>
        {isTooltipVisible && (
          <div
            style={{
              position: 'absolute',
              top: 0,
              left: 0,
              width: '100%',
              height: '100%',
              display: 'flex',
              justifyContent: 'center',
              alignItems: 'center',
              backgroundColor: 'rgba(255, 255, 255, 0.8)',
              textAlign: 'center',
            }}
          >
            <Box width={400} direction="vertical" align="center">
              <Text size="small">
                Your site doesn't have enough data to show benchmarks
              </Text>
            </Box>
          </div>
        )}
      </div>
      <Box direction="vertical" padding="0 SP5 SP5 SP5">
        <Divider />
        <Box direction="vertical" height={94} align="center" padding="SP5">
          <Box margin="0 SP3" width={228} textAlign="center">
            <Text size="small">
              Need help driving more traffic to your site
            </Text>
          </Box>
          <Box marginTop="SP3">
            <Button size="tiny" priority="secondary">
              Hire a Professional
            </Button>
          </Box>
        </Box>
      </Box>
    </Card>
  );
};
```

## Code

```jsx
import { RadarChart } from '@wix/design-system';
```

### Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `data` | `DataPoint[]` | — | Defines data points that construct spider web-like charts. Available properties for array items:<br /> &emsp;- `value` - a number that represents value in chart<br /> &emsp;- `label` - a label that represents value description around the chart<br /> &emsp;- `color` - data point color.<br /> &emsp;- `tooltipContent` - data point tooltip content. |
| `dataHook` | `string` | — | Applies a data-hook HTML attribute that can be used in tests. |
| `disabled` | `boolean` | — | Specifies whether graph is disabled. |
| `hoverIndex` | `null \| number` | — | Defines the index of a data point in hover state. |
| `labelDistance` | `number` | `50` | Controls label distance from a chart. |
| `labelWidth` | `number` | `100` | Controls label width in pixels. |
| `onDataPointHover` | `(dataPoint?: DataPoint \| undefined, index?: number \| undefined) => void` | — | Defines a callback function which is called every time user hovers over a data point. Includes all data point data as first argument and index as second. Both are `undefined` when no point is hovered, for example on mount without `hoverIndex`. |
| `scale` | `ScalePoint[]` | — | Defines a number of scale circles in the chart. Available properties for each scale:<br /> &emsp;- `value` - a number representing scale<br /> &emsp;- `suffix` - a string that represents value meaning (i.e. % or $) |
| `width` | `number` | `150` | Controls the width of a graph. Minimum width is 150 pixels. |

## Testkit

No testkit for this component — it doesn't expose a unidriver testkit.

## Changelog

- **1.344.0** (2026-10-28) — maintenance release, no component-specific changes
- **1.339.0** (2026-10-19) — maintenance release, no component-specific changes
- **1.338.0** (2026-10-15) — maintenance release, no component-specific changes
- **1.330.0** (2026-09-28) — maintenance release, no component-specific changes
- **1.325.0** (2026-09-17) — maintenance release, no component-specific changes
- **1.324.0** (2026-09-14) — maintenance release, no component-specific changes
- **1.317.0** (2026-08-26) — maintenance release, no component-specific changes
- **1.310.0** (2026-08-10) — maintenance release, no component-specific changes
- **1.295.0** (2026-07-03) — maintenance release, no component-specific changes
- **1.292.0** (2026-06-22) — maintenance release, no component-specific changes
- **1.277.0** (2026-05-07) — maintenance release, no component-specific changes
- **1.266.0** (2026-04-07) — maintenance release, no component-specific changes
- **1.260.0** (2026-03-17) — maintenance release, no component-specific changes
- **1.247.2** (2026-01-21) — maintenance release, no component-specific changes
- **1.212.0** (2025-08-11) — maintenance release, no component-specific changes
- **1.165.0** (2025-02-27) — maintenance release, no component-specific changes
- **1.155.0** (2025-01-23) — maintenance release, no component-specific changes
- **1.92.1** (2024-02-05) — maintenance release, no component-specific changes