The React Radar chart visualizes data in terms of values and angles. It provides options for visual comparison between several quantitative or qualitative aspects of a situation. It supports interactive features such as selection and tooltip.
The React Radar Chart provides an option to reverse the axis labels and ticks. This swaps the higher and lower ranges of an axis.
Customize the start angle of the chart to rotate it.
Mark data points with built-in shapes such as circles, rectangles, ellipses, vertical lines, horizontal lines, diamonds, triangles, pentagons, crosses, and pluses. In addition to these shapes, use images to make the points more attractive.
Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.
Supports different types of series like line, column, spline, range area, scatter, and stacked area.
You can create a wind rose chart with the help of stacked column series in polar and radar charts.
Easily get started with React Radar Chart by using a few lines of HTML and JS code, as demonstrated below. Also explore our React Radar Chart Example that shows how to render and configure the chart.
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, RadarSeries, LineSeries } from '@syncfusion/ej2-react-charts';
import * as React from "react";
class App extends React.Component<{}, {}> {
public primaryXAxis: AxisModel = { valueType: 'Category'};
public data1: any[]= [
{ x: 'JPN', y: 5156 },
{ x: 'DEU', y: 3754 },
{ x: 'FRA', y: 2809 },
{ x: 'GBR', y: 2721 },
{ x: 'BRA', y: 2472 },
{ x: 'RUS', y: 2231 },
{ x: 'ITA', y: 2131 },
{ x: 'IND', y: 1857 },
{ x: 'CAN', y: 1843 }
];
public render() {
return<ChartComponent id='charts' primaryXAxis={this.primaryxAxis} title='Efficiency of oil-fired power production'>
<Inject services={[RadarSeries,LineSeries]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={this.data1} xName='x' yName='y' type='Radar' name='Department' drawType='Line'>
</SeriesDirective>
</SeriesCollectionDirective>
</ChartComponent>
}
};
ReactDOM.render(
<App />,
document.getElementById('charts') as HTMLElement
);
<!DOCTYPE html>
<html>
<body>
<div id="charts"></div>
</body>
</html>
Learn the available options to customize the React Radar chart.
Explore the React Radar chart APIs.