CN-932 fix: 折线图类的组件代码优化

This commit is contained in:
刘洪洪
2023-03-21 11:21:29 +08:00
parent 9d210a0d07
commit ef70c1ac23
3 changed files with 86 additions and 143 deletions

View File

@@ -185,3 +185,35 @@ export const dataForNpmLine = {
{ legend: '', color: '#E5A219' }
]
}
export const dataForDnsTrafficLine = {
options1: [
{
value: 'Bits/s',
label: 'Bits/s'
},
{
value: 'Queries/s',
label: 'Queries/s'
}
],
options2: [
{
value: 'Average',
label: 'Average'
},
{
value: '95th Percentile',
label: '95th Percentile'
},
{
value: 'Maximum',
label: 'Maximum'
}
],
tabs: [
{ analysis: {}, name: 'network.total', class: 'total', show: true, invertTab: true, positioning: 0, data: [], unitType: '' },
{ analysis: {}, name: 'network.inbound', class: 'inbound', show: true, invertTab: true, positioning: 1, data: [], unitType: '' },
{ analysis: {}, name: 'network.outbound', class: 'outbound', show: true, invertTab: true, positioning: 2, data: [], unitType: '' }
]
}