(function() { const dom = document.getElementById('chart-gauge'); if (!dom) return; const myChart = echarts.init(dom); myChart.setOption({ series: [{ type: 'gauge', startAngle: 210, endAngle: -30, min: 0, max: 100, progress: { show: true, width: 18 }, axisLine: { lineStyle: { width: 18, color: [[0.3, '#ef4444'], [0.7, '#f59e0b'], [1, '#22c55e']] } }, detail: { valueAnimation: true, formatter: '{value}分', fontSize: 24, offsetCenter: [0, '70%'] }, data: [{ value: 68, name: '综合评分' }] }] }); window.addEventListener('resize', () => myChart.resize()); })();