CN-301 Detection-饼图、柱状图开发问题修改:

1.接口增加参数
2.饼图显示异常
This commit is contained in:
hyx
2022-03-04 18:16:06 +08:00
parent 5bbda24a17
commit 3af81d28a3
6 changed files with 9 additions and 27 deletions

View File

@@ -18,6 +18,9 @@ export function getSeriesIndex (type) {
return mapping && mapping.index ? _.cloneDeep(mapping.index) : null
}
export const activeAttackColor = ['#51a9ee', '#49bcf2', '#4ad7eb', '#4cd4c8',
'#7acc7e', '#a7db69']
const activeAttackColorMappings = [
{ value: 'command and control', color: '#51a9ee' },
{ value: 'payload delivery', color: '#49bcf2' },
@@ -149,7 +152,7 @@ export const pieForSeverity = {
tooltip: {
appendToBody: true
},
color: chartColor,
color: activeAttackColor,
animation: false,
legend: {
orient: 'vertical',