(function() { const dom = document.getElementById('chart-radial-bar'); const options = { chart: { type: 'radialBar', height: 400 }, series: [78, 65, 92, 45], labels: ['指标A', '指标B', '指标C', '指标D'], colors: ['#3b82f6', '#f59e0b', '#22c55e', '#ef4444'], plotOptions: { radialBar: { dataLabels: { name: { fontSize: '14px' }, value: { fontSize: '16px', formatter: v => v + '%' } }, track: { background: '#e2e8f0' } } } }; const chart = new ApexCharts(dom, options); chart.render(); window.addEventListener('resize', () => chart.render()); })();