问题遇到的现象和发生背景
需要给雷达图添加边框提示类似于这样
试着在百度找了,但是都不能正确添加
问题相关代码,请勿粘贴截图
echartsOption : {
title: {
text: "",
},
legend: {
// data: ["BDS", "GPS"],
},
polar: {},
tooltip: {
trigger: "axis",
axisPointer: {
type: "cross",
},
},
angleAxis: {
type: "value",
min: 0,
max: 360,
axisTick: {
show: false,
},
axisLabel: {
show: false,
},
},
radiusAxis: {
type: "value",
min: 90,
max: 0,
splitNumber: 3,
axisLine: {
show: false,
},
axisTick: {
show: false,
},
axisLabel: {
show: false,
},
},
series: [
{
coordinateSystem: "polar",
name: "BDS",
symbolSize: 28,
itemStyle: {
normal: {
color: "rgb(52, 152, 219)",
},
},
label: {
normal: {
show: true,
formatter: "{b}",
position: "inside",
textStyle: {
color: "#fff",
fontSize: 12,
},
},
},
type: "scatter",
data: this.data1,
},
{
coordinateSystem: "polar",
name: "GPS",
symbolSize: 28,
itemStyle: {
normal: {
color: "rgb(26, 187, 156)",
},
},
label: {
normal: {
show: true,
formatter: "{b}",
position: "inside",
textStyle: {
color: "#fff",
fontSize: 12,
},
},
},
type: "scatter",
data: this.data2,
},
],
},
运行结果及报错内容
图片上的数字是圆心到半径的长,但是我想显示的是从边上到半径的,就是显示90-现在数字