<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content=
"width=device-width, initial-scale=1.0">
<title>
The Radar Chart Example
</title>
<script src=
"https://cdn.jsdelivr.net/npm/chart.js">
</script>
</head>
<body>
<canvas id="radarChart" width="400"
height="400">
</canvas>
<script>
const ctx = document.
getElementById('radarChart').
getContext('2d');
const myRadarChart = new Chart(ctx, {
type: 'radar',
data: {
labels:
['Category 1', 'Category 2', 'Category 3',
'Category 4', 'Category 5'],
datasets: [{
label: 'Dataset 1',
data:
[10, 20, 15, 25, 30],
backgroundColor:
'rgba(255, 99, 132, 0.2)',
borderColor:
'rgba(255, 99, 132, 1)',
borderWidth: 1
}, {
label: 'Dataset 2',
data:
[15, 25, 20, 30, 35],
backgroundColor:
'rgba(54, 162, 235, 0.2)',
borderColor:
'rgba(54, 162, 235, 1)',
borderWidth: 1
}]
},
options: {
scale: {
ticks: {
beginAtZero: true
}
}
}
});
</script>
</body>
</html>