Skip to contentSkip to content

RadarGrid API

API reference docs for the React RadarGrid component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { RadarGrid } from '@mui/x-charts/RadarChart';
// or
import { RadarGrid } from '@mui/x-charts';
// or
import { RadarGrid } from '@mui/x-charts-pro';

Learn about the difference by reading this guide on minimizing bundle size.

Props

NameTypeDefaultDescription
classesobject-

Override or extend the styles applied to the component.

See CSS classes API below for more details.

divisionsnumber5

The number of divisions in the radar grid.

shape'circular'
| 'sharp'
'sharp'

The grid shape.

stripeColorfunc(index) => index % 2 === 1 ? (theme.vars || theme).palette.text.secondary : 'none'

Get stripe fill color. Set it to null to remove stripes

Signature:function(index: number) => string
  • index The index of the stripe band.

Returns: The color to fill the stripe.

The component cannot hold a ref.

CSS classes

These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.

Class nameRule nameDescription
.MuiRadarGrid-dividerdividerStyles applied to every divider element.
.MuiRadarGrid-radialradialStyles applied to every radial line element.
.MuiRadarGrid-stripestripeStyles applied to every stripe element.

You can override the style of the component using one of these customization options:

Source code

If you did not find the information in this page, consider having a look at the implementation of the component for more detail.