JSFiddle - React, Tailwind, and code Playground
by Geo George
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<div id="container"></div>
JavaScript
Highcharts.chart('container', {
chart: {
polar: true
},
title: {
text: 'Goals'
},
subtitle: {
text: 'Goals'
},
pane: {
startAngle: 0,
endAngle: 360
},
xAxis: {
tickInterval: 73,
min: 0,
labels: {
format: true
}
},
yAxis: {
min: 0,
max: 5
},
plotOptions: {
series: {
states: {
inactive: {
opacity: 1
}
}
},
column: {
pointStart: 0,
pointInterval: 73,
pointPadding: 0,
groupPadding: 0,
dataLabels: {
enabled: false
}
}
},
series: [{
type: 'pie',
animation: false,
//linkedTo: 'main',
size: '5%',
dataLabels: {
distance: 130
},
states: {
hover: {
enabled: false,
brightness: 0
}
},
data: [{
name: 'Point 12',
y: 1
}, {
name: 'Point 2',
y: 1
}, {
name: 'Point 3',
y: 1
}, {
name: 'Point 4',
y: 1
}, {
name: 'Point 5',
y: 1
}]
}, {
type: 'column',
name: 'Goal',
id: 'main',
colorByPoint: true,
animation: false,
states: {
hover: {
brightness: 0
}
},
data: [{
name: 'Point 1',
y: 1
}, {
name: 'Point 2',
y: 2
}, {
name: 'Point 3',
y: 3
}, {
name: 'Point 4',
y: 4
}, {
name: 'Point 5',
y: 5
}],
pointPlacement: 'between'
}]
});