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.
Name | Type | Default | Description |
---|---|---|---|
classes | object | - | Override or extend the styles applied to the component. See CSS classes API below for more details. |
divisions | number | 5 | The number of divisions in the radar grid. |
shape | 'circular' | 'sharp' | 'sharp' | The grid shape. |
stripeColor | func | (index) => index % 2 === 1 ? (theme.vars || theme).palette.text.secondary : 'none' | Get stripe fill color. Set it to Signature: function(index: number) => string
Returns: The color to fill the stripe. |
These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
Class name | Rule name | Description |
---|---|---|
.MuiRadarGrid-divider | divider | Styles applied to every divider element. |
.MuiRadarGrid-radial | radial | Styles applied to every radial line element. |
.MuiRadarGrid-stripe | stripe | Styles applied to every stripe element. |
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverrides
property in a custom theme.
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.