From 617ee131ec6dffd0052bafad1492bf627367b74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Fri, 30 Jun 2023 18:07:46 +0800 Subject: [PATCH] =?UTF-8?q?CN-1135:=20=E7=BB=9F=E4=B8=80=E5=90=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=8E=AF=E5=BD=A2=E5=9B=BE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/options/echartOption.js | 8 +++----- src/views/detections/options/detectionOptions.js | 11 ++--------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/views/charts2/charts/options/echartOption.js b/src/views/charts2/charts/options/echartOption.js index 0306c687..0cd61935 100644 --- a/src/views/charts2/charts/options/echartOption.js +++ b/src/views/charts2/charts/options/echartOption.js @@ -49,8 +49,7 @@ export const pieChartOption1 = { } }) name = name.length > 9 ? name.substr(0, 9) + '...' : name - const arr = ['{a|' + ' ' + value + '}' + '{b|' + name + '}'] - return arr + return ['{a|' + ' ' + value + '}' + '{b|' + name + '}'] } }, series: [ @@ -108,8 +107,7 @@ export const pieChartOption2 = { } }) name = name.length > 9 ? name.substr(0, 9) + '...' : name - const arr = ['{a|' + ' ' + value + '}' + '{b|' + name + '}'] - return arr + return ['{a|' + ' ' + value + '}' + '{b|' + name + '}'] } }, color: chartColor2, @@ -136,7 +134,7 @@ export const pieChartOption3 = { { name: 'Access From', type: 'pie', - radius: ['45%', '50%'], + radius: ['40%', '50%'], avoidLabelOverlap: false, emphasis: { label: { diff --git a/src/views/detections/options/detectionOptions.js b/src/views/detections/options/detectionOptions.js index a796cf87..ebaaa2c8 100644 --- a/src/views/detections/options/detectionOptions.js +++ b/src/views/detections/options/detectionOptions.js @@ -180,7 +180,7 @@ export const pieForSeverity = { appendToBody: true }, color: activeAttackColor, - animation: false, + animation: true, legend: { orient: 'vertical', type: 'plain', @@ -199,7 +199,7 @@ export const pieForSeverity = { { type: 'pie', selectedMode: 'single', - radius: ['42%', '65%'], + radius: ['43%', '65%'], center: ['30%', '50%'], data: [], label: { @@ -212,13 +212,6 @@ export const pieForSeverity = { formatter: function (param, index, callback) { return `${param.name}: ${param.value}` } - }, - emphasis: { - itemStyle: { - shadowBlur: 10, - shadowOffsetX: 0, - shadowColor: 'rgba(0, 0, 0, 0.5)' - } } } ]