fix: npm 折线图移入弹框颜色补充

This commit is contained in:
@changcode
2022-10-20 11:23:32 +08:00
parent e39e24258b
commit 75dd68f403

View File

@@ -314,6 +314,16 @@ 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]
}
})
this.npmQuantity.forEach(d => {
if (this.$t(d.name) === t.seriesName) {
t.borderColor = chartColor3[d.positioning]
}
})
})
const str = stackedLineTooltipFormatter(params)
return str