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

This commit is contained in:
刘洪洪
2023-08-02 18:35:32 +08:00
parent ab5901cd46
commit e038b6c4b7

View File

@@ -182,7 +182,6 @@ export default {
data = data.reverse()
this.chartOption.series = data.map((t, i) => {
console.info(t)
return {
type: 'line',
symbol: 'circle',
@@ -196,7 +195,7 @@ export default {
shadowBlur: t.positioning ? this.sizes[t.positioning] + 2 : 0
}
},
name: t.legend ? t.legend : this.$t(chartData.i18n) || chartData.name,
name: t.invertTab ? t.legend : this.$t(chartData.i18n),
stack: this.chartData.params.isStack ? (t.legend === this.$t('network.total') ? '' : 'network.total') : '',
lineStyle: {
width: 1