1:效果如图:
2:代码如下
大家对着数据修改下基本就差不多的了
const option = {
title: {
text: "年度总用电\n\n" + 5,432,
top: 10,
left: 80,
subtext: "KMH",
textAlign: "center",
textStyle: { color: "#ffc800", fontSize: 24 },
padding: [10, 10, 10, 10],
borderRadius: 8,
subtextStyle: { color: "#ffc800", fontSize: 14 },
backgroundColor: "#2d3360",
},
textStyle: {
fontSize: 18,
color: "white",
},
color: ["#0e9cff", "#18f8ee", "#ffc800"],
radar: {
center: [270, 240],
radius: 130,
shape: "polygon",
splitNumber: 4,