fix: 修复npm location折线图tooltip不对的问题

This commit is contained in:
刘洪洪
2023-08-02 18:37:10 +08:00
parent e038b6c4b7
commit 5c1618b4e2

View File

@@ -195,7 +195,7 @@ export default {
shadowBlur: t.positioning ? this.sizes[t.positioning] + 2 : 0
}
},
name: t.invertTab ? t.legend : this.$t(chartData.i18n),
name: t.invertTab ? t.legend : this.$t(chartData.i18n) || chartData.name,
stack: this.chartData.params.isStack ? (t.legend === this.$t('network.total') ? '' : 'network.total') : '',
lineStyle: {
width: 1