From 104c455f3f7e65b1172d4fe92296483eea56f1ca Mon Sep 17 00:00:00 2001 From: qianming Date: Mon, 15 Nov 2021 16:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E9=A5=B0=E5=9B=BE=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../widget/decorate/widgetDecoratePieChart.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/widget/decorate/widgetDecoratePieChart.vue b/report-ui/src/views/report/bigscreen/designer/widget/decorate/widgetDecoratePieChart.vue index d6deb124..c38ed9f2 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/decorate/widgetDecoratePieChart.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/decorate/widgetDecoratePieChart.vue @@ -303,16 +303,24 @@ export default { } else { series.data = '' } + let lastRing0Color = optionsSetup.lastRing0Color; + let lastRing100Color = optionsSetup.lastRing100Color; + if (lastRing0Color == "") { + lastRing0Color = 'rgba(0,0,0,0)' + } + if (lastRing100Color == "") { + lastRing100Color = 'rgba(0,0,0,0)' + } const normal = { color: { colorStops: [ { offset: 0, - color: optionsSetup.lastRing0Color, + color: lastRing0Color, }, { offset: 1, - color: optionsSetup.lastRing100Color, + color: lastRing100Color, }, ], },