CN-1135: 统一各页面环形图样式

This commit is contained in:
刘洪洪
2023-06-30 18:07:46 +08:00
parent 5eed8baac1
commit 617ee131ec
2 changed files with 5 additions and 14 deletions

View File

@@ -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: {

View File

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