### **以下为接口设置:** ### **1、选中该雷达图组件,在操作界面右侧,点击“数据”,可设置接口**。 ![](https://img.kancloud.cn/57/82/5782fd617c83be6a1ade8b84f5e1ecda_345x388.png) ### **2、配置静态API** * 数据类型:选择“静态数据”; * 数据值:点击“编辑”进行修改; * 数据格式: ``` { "indicator": [ { "name": "销售", "max": 6500 }, { "name": "管理", "max": 16000 }, { "name": "信息技术", "max": 30000 }, { "name": "客服", "max": 38000 }, { "name": "研发", "max": 52000 }, { "name": "市场", "max": 25000 } ], "series": [ { "data": [ { "value": [ 4300, 10000, 28000, 35000, 50000, 19000 ], "name": "预算分配(Allocated Budget)" }, { "value": [ 5000, 14000, 28000, 31000, 42000, 21000 ], "name": "实际开销(Actual Spending)" } ] } ] } ``` ![](https://img.kancloud.cn/56/51/56511d5fa156313642ccab011c72b9a3_710x349.png) ### **3、配置动态API** * 数据类型:选择“静态数据”; * 数据值:点击“编辑”进行修改; * 数据格式: ``` { "data":{ "indicator":[ {"name":"语文","max":150}, {"name":"数学","max":150}, {"name":"英语","max":150}, {"name":"物理","max":150}, {"name":"化学","max":150}, {"name":"生物","max":150}], "series":[ {"data":[ {"value":[120,118,130,100,99,70],"name":"张三"}, {"value":[90,113,140,30,70,60],"name":"李四"} ]} ] } } ``` * 刷新时间:这个参数主要针对动态数据设置的,完成数据的实时更新;如果你想设置成5秒刷新一次,可以将刷新时间设置成“5000”; ![](https://img.kancloud.cn/32/1c/321cd2a6ba8937e62c68d92ea46a5d82_701x598.png)