This commit is contained in:
张成
2026-03-24 16:07:02 +08:00
commit aa8eaa6ccd
121 changed files with 34042 additions and 0 deletions

59
leida.html Normal file
View File

@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Radar Chart Example</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f5f5f5;
margin: 0;
padding: 20px;
}
.chart-container {
padding: 20px;
background-color: white;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
canvas {
display: block;
}
</style>
</head>
<body>
<div class="chart-container">
<canvas id="myRadarChart" width="300" height="300"></canvas>
</div>
<script>
var ctx = document.getElementById('myRadarChart').getContext('2d');
var myRadarChart = new Chart(ctx, {
type: 'radar',
data: {
labels: ['正手球质', '正手线路控制', '反手球质', '反手线路控制', '底线相持', '场地覆盖', '发球接发', '随机球', '战术设计能力'],
datasets: [{
label: '球员能力评分',
data: [4, 5, 3, 4, 5, 2, 4, 3, 4], // The values for each label
backgroundColor: 'rgba(0, 204, 204, 0.2)',
borderColor: 'rgba(0, 204, 204, 1)',
borderWidth: 1
}]
},
options: {
scales: {
r: {
beginAtZero: true
}
}
}
});
</script>
</body>
</html>