Radar Chart
Example of radar chart with the <Radar> component.
Edit the example and see the result right away: StackBlitz runs it in your browser.
Open in new tabView on GitHubOpen in StackBlitz
import { Chart as ChartJS, RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend} from 'chart.js'import { Radar } from 'react-chartjs-2'
ChartJS.register( RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend)
export const data = { labels: ['Thing 1', 'Thing 2', 'Thing 3', 'Thing 4', 'Thing 5', 'Thing 6'], datasets: [ { label: '# of Votes', data: [2, 9, 3, 5, 2, 3], backgroundColor: 'rgba(255, 99, 132, 0.2)', borderColor: 'rgba(255, 99, 132, 1)', borderWidth: 1 } ]}
export function App() { return <Radar data={data}/>}