RadarDataProvider API
API reference docs for the React RadarDataProvider component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { RadarDataProvider } from '@mui/x-charts/RadarChart';
// or
import { RadarDataProvider } from '@mui/x-charts';
// or
import { RadarDataProvider } from '@mui/x-charts-pro';
Learn about the difference by reading this guide on minimizing bundle size.
Name | Type | Default | Description |
---|---|---|---|
radar* | { max?: number, metrics: Array<string> | Array<{ max?: number, min?: number, name: string }>, startAngle?: number } | - | The configuration of the radar scales. |
series* | Array<object> | - | The series to display in the bar chart. An array of RadarSeriesType objects. |
colors | Array<string> | func | rainbowSurgePalette | Color palette used to colorize multiple series. |
height | number | - | The height of the chart in px. If not defined, it takes the height of the parent element. |
highlightedItem | { dataIndex?: number, seriesId: number | string } | - | The highlighted item. Used when the highlight is controlled. |
id | string | - | This prop is used to help implement the accessibility logic. If you don't provide this prop. It falls back to a randomly generated id. |
margin | number | { bottom?: number, left?: number, right?: number, top?: number } | - | The margin between the SVG and the drawing area. It's used for leaving some space for extra information such as the x- and y-axis or legend. |
onHighlightChange | func | - | The callback fired when the highlighted item changes. Signature: function(highlightedItem: HighlightItemData | null) => void
|
skipAnimation | bool | - | If |
width | number | - | The width of the chart in px. If not defined, it takes the width of the parent element. |
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.