From 9e9c10496949328c8ae6c0b9b2b6de71c82f5670 Mon Sep 17 00:00:00 2001 From: junjie Date: Tue, 31 Aug 2021 12:41:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9B=B7=E8=BE=BE=E5=9B=BE=E7=A9=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/radar/radar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/views/chart/chart/radar/radar.js b/frontend/src/views/chart/chart/radar/radar.js index 56e6ec55d1..d2b582981c 100644 --- a/frontend/src/views/chart/chart/radar/radar.js +++ b/frontend/src/views/chart/chart/radar/radar.js @@ -28,6 +28,9 @@ export function baseRadarOption(chart_option, chart) { const maxValues = [] for (let i = 0; i < chart.data.series.length; i++) { const y = chart.data.series[i] + if (y.data.length === 0) { + continue + } // color y.itemStyle = { color: hexColorToRGBA(customAttr.color.colors[i % 9], customAttr.color.alpha)