fix; 修复折线图因数据问题导致移入弹框颜色错误问题

This commit is contained in:
@changcode
2022-10-20 11:19:58 +08:00
parent 5767fe896b
commit e39e24258b
5 changed files with 22 additions and 4 deletions

View File

@@ -396,6 +396,11 @@ export default {
this.chartOption.tooltip.formatter = (params) => {
params.forEach(t => {
t.seriesName = this.$t(t.seriesName)
this.mpackets.forEach(e => {
if (this.$t(e.name) === t.seriesName) {
t.borderColor = chartColor3[e.positioning]
}
})
})
const str = stackedLineTooltipFormatter(params)
return str