fix: npm 折线图移入弹框颜色补充
This commit is contained in:
@@ -314,6 +314,16 @@ export default {
|
|||||||
this.chartOption.tooltip.formatter = (params) => {
|
this.chartOption.tooltip.formatter = (params) => {
|
||||||
params.forEach(t => {
|
params.forEach(t => {
|
||||||
t.seriesName = this.$t(t.seriesName)
|
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)
|
const str = stackedLineTooltipFormatter(params)
|
||||||
return str
|
return str
|
||||||
|
|||||||
Reference in New Issue
Block a user