var option = { title: { text: '雷达图示例' }, tooltip: {}, legend: { data: ['预算分配(Allocated Budget)', '实际支出(Actual Spending)'] }, radar: { // shape: 'circle', // 雷达图形状,可选 'circle', 'polygon' indicator: [ { name: '销售(Sales)', max: 10000 }, { name: '管理(Administration)', max: 16000 }, { name: '信息技术(Information Technology)', max: 30000 }, { name: '客服(Customer Support)', max: 38000 }, { name: '研发(Development)', max: 52000 }, { name: '市场营销(Marketing)', max: 25000 } ] }, series: [{ name: '预算分配(Allocated Budget)', type: 'radar', // areaStyle: {normal: {}}, data: [ [9000, 14000, 28000, 35000, 50000, 19000] ] }, { name: '实际支出(Actual Spending)', type: 'radar', // areaStyle: {normal: {}}, data: [ [11000, 12000, 21000, 28000, 42000, 21000] ] }] }; // 使用刚指定的配置项和数据显示图表。 myChart.setOption(option);