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)' - } } } ]