let radius = Math.min(this.context.width, this.context.height) / 2 - 20; let centerX = this.context.width / 2; let centerY = this.context.height / 2; // 绘制圆环 this.context.strokeStyle = '#E4E4E4'; const numRings = 5; const ringInterval = 1; for (let i = 0; i < numRings; i++) { this.context.beginPath(); this.context.arc(centerX, centerY, (i + 1) * (radius / numRings), 0, 2 * Math.PI); this.context.stroke(); } // 绘制雷达图背景网格 // this.context.lineWidth = 1; for (let i = 0; i < this.numDataPoints; i++) { const angle = i * this.angleStep - this.startAngle; const x = centerX + ra