apps/mantine.dev/src/pages/charts/radar-chart.mdx
import { RadarChartDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.RadarChart);
RadarChart is based on the recharts RadarChart component:
You can display multiple series on the same radar chart:
<Demo data={RadarChartDemos.multiple} />You can reference colors from theme the same way as in
other components, for example, blue, red.5, orange.7, etc. Any valid CSS
color value is also accepted.
To pass props down to the underlying recharts components, use the following props:
radarChartProps passes props to the RadarChart componentpolarGridProps passes props to the PolarGrid componentpolarAngleAxisProps passes props to the PolarAngleAxis componentpolarRadiusAxisProps passes props to the PolarRadiusAxis componentExample of passing props down to the PolarRadiusAxis component:
<Demo data={RadarChartDemos.rechartsProps} />Set the withLegend prop to display the legend: