Polar (radar) chart
author(s): Torstein Hønsi
by Black Label
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<div id="container"></div>
CSS
.highcharts-figure, .highcharts-data-table table {
min-width: 320px;
max-width: 660px;
margin: 1em auto;
}
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #EBEBEB;
margin: 10px auto;
text-align: center;
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) {
background: #f8f8f8;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
JavaScript
Highcharts.chart('container', {
chart: {
polar: true,
type: 'scatter',
},
xAxis: {
type: 'datetime',
showLastLabel: true,
min: 1616716800000,
max: 1616716800000 + 1000 * 60 * 60 * 24,
labels: {
formatter: function(){
return Highcharts.dateFormat('%H: %M', this.value);
}
}
},
time: {
// useUTC: false
},
yAxis: {
min: 0
},
/* plotOptions: {
series: {
pointStart: 0,
pointInterval: 45
},
column: {
pointPadding: 0,
groupPadding: 0
} */
series: [{
data: [
[1616718600000, 145],
[1616721000000, 145],
[1616721900000, 145],
[1616722500000, 145],
[1616736300000, 145],
[1616738700000, 145],
[1616738700000, 145],
[1616739900000, 145],
[1616739900000, 145],
[1616740500000, 145],
[1616742300000, 145],
[1616742600000, 145],
[1616742900000, 145],
[1616742900000, 145],
[1616762100000, 145],
[1616762700000, 145],
[1616763600000, 145],
[1616763600000, 145],
[1616763600000, 145],
[1616763900000, 145],
[1616763900000, 145],
[1616763900000, 145],
[1616764200000, 145],
[1616764200000, 145],
[1616764500000, 145],
[1616764500000, 145],
[1616764500000, 145],
[1616764500000, 145],
[1616764800000, 145],
[1616764800000, 145],
[1616764800000, 145],
[1616765100000, 145],
[1616765400000, 145],
[1616765400000, 145],
[1616765400000, 145],
[1616765400000, 145],
[1616765400000, 145],
[1616765700000, 145],
[1616765700000, 145],
[1616765700000, 145],
[1616766000000, 145],
[1616766000000, 145],
[1616766300000, 145],
[1616766300000, 145],
[1616766300000, 145],
[1616766600000, 145],
[1616767200000, 145],
...