I want to render the radar chart using react high charts,
But after writing below code, i am getting the line chart format not exactly the expected output i am achieving, Which i am trying to get the chart in radar format.
{
chart: {
renderTo: 'container',
polar: true,
type: 'line'
},
credits: {
enabled: false
},
title: {
text: '',
},
xAxis: {
categories: ['Sales', 'Marketing', 'Development', 'Customer Support',
'Information Technology', 'Administration'],
},
yAxis: {
gridLineInterpolation: 'polygon',
lineWidth: 0,
min: 0
},
series: [{
name: 'Allocated Budget',
data: [43000, 19000, 60000, 35000, 17000, 10000],
pointPlacement: 'on'
}, {
name: 'Actual Spending',
data: [50000, 39000, 42000, 31000, 26000, 14000],
pointPlacement: 'on'
}]
}
Component
<ReactHighcharts config={radar}></ReactHighcharts>
Import
import ReactHighcharts from 'react-highcharts';
I am unable to render in radar type, Instead getting similar to line chart