CN-1350 fix: Network & App Performance>>Location页面切换为Client时,Throughput趋势图的颜色与右上角提示不一致

This commit is contained in:
刘洪洪
2023-09-26 15:55:10 +08:00
parent 4691b78a59
commit 0a9c5e2fcf

View File

@@ -178,8 +178,8 @@ export default {
}
this.chartOption = npmLineChartOption
this.chartOption.color = this.chartData.params.color
this.chartOption.color = this.chartOption.color.reverse()
data = data.reverse()
// this.chartOption.color = this.chartOption.color.reverse()
// data = data.reverse()
this.chartOption.series = data.map((t, i) => {
return {
@@ -226,7 +226,7 @@ export default {
}
})
})
return stackedLineTooltipFormatter(params)
return stackedLineTooltipFormatter(params.reverse())
}
this.myChartArray.push(this.myChart)