diff --git a/src/views/charts2/charts/NetworkOverviewLine.vue b/src/views/charts2/charts/NetworkOverviewLine.vue index 48f42b0f..25f8ba50 100644 --- a/src/views/charts2/charts/NetworkOverviewLine.vue +++ b/src/views/charts2/charts/NetworkOverviewLine.vue @@ -40,6 +40,7 @@ v-model="value2" :disabled="activeShow === 'total'" popper-class="reference-line" + @change="referenceSelectChange" > @@ -113,7 +114,8 @@ export default { activeShow: 'total', mousemoveCursor: '', leftOffset: 0, - sizes: [3, 4, 6, 8, 9, 10] + sizes: [3, 4, 6, 8, 9, 10], + echartsLabelValue: 'Average' } }, watch: { @@ -7114,7 +7116,7 @@ export default { label: { formatter (params) { const arr = unitConvert(params.value, unitTypes.number).join('') - return _this.value2 + '(' + arr + 'packets/s' + ')' + return _this.echartsLabelValue + '(' + arr + 'packets/s' + ')' }, position: 'insideStartTop', color: '#717171', @@ -7196,6 +7198,12 @@ export default { } this.activeShow = 'total' }, + referenceSelectChange (val) { + this.timer = setTimeout(() => { + this.init() + }, 200) + this.echartsLabelValue = val + }, symbolSizeSortChange (index, time) { const dataIntegrationArray = [] if (stackedLineChartOption.series[0]) { diff --git a/src/views/charts2/charts/options/echartOption.js b/src/views/charts2/charts/options/echartOption.js index 779620c6..3d65008c 100644 --- a/src/views/charts2/charts/options/echartOption.js +++ b/src/views/charts2/charts/options/echartOption.js @@ -293,7 +293,6 @@ export const npmLineChartOption = { { type: 'line', symbol: 'circle', - stack: 'network.total', smooth: true, showSymbol: false, emphasis: {