diff --git a/src/views/charts2/charts/npm/NpmLine.vue b/src/views/charts2/charts/npm/NpmLine.vue index 112e7593..de70b3e8 100644 --- a/src/views/charts2/charts/npm/NpmLine.vue +++ b/src/views/charts2/charts/npm/NpmLine.vue @@ -182,6 +182,7 @@ export default { data = data.reverse() this.chartOption.series = data.map((t, i) => { + console.info(t) return { type: 'line', symbol: 'circle', @@ -196,7 +197,7 @@ export default { } }, name: t.legend ? t.legend : this.$t(chartData.i18n) || chartData.name, - stack: this.chartData.params.isStack ? 'network.total' : '', + stack: this.chartData.params.isStack ? (t.legend === this.$t('network.total') ? '' : 'network.total') : '', lineStyle: { width: 1 },