fix: echarts雷达图没有指标

This commit is contained in:
wangjiahao 2022-07-01 11:14:03 +08:00
parent d1d116e86d
commit 397b9da6db

View File

@ -55,11 +55,11 @@ export function baseRadarOption(chart_option, chart) {
name: y.name, name: y.name,
label: y.label label: y.label
} }
] ],
selectedMode: true,
select: BASE_ECHARTS_SELECT
} }
y.value = JSON.parse(JSON.stringify(y.data)) y.value = JSON.parse(JSON.stringify(y.data))
chart_option.series[0].selectedMode = true
chart_option.series[0].select = BASE_ECHARTS_SELECT
chart_option.series.push(d) chart_option.series.push(d)
maxValues.push(Math.max.apply(null, y.value)) maxValues.push(Math.max.apply(null, y.value))