CN-1135: 统一各页面环形图样式
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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)'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user