fix(性能测试): 增加图表配置,采用 lttb 的 sampling 算法

Closes #2728
This commit is contained in:
Captain.B 2021-05-12 15:40:24 +08:00 committed by 刘瑞斌
parent b84c3cc725
commit a30f76cf10
1 changed files with 2 additions and 1 deletions

View File

@ -468,7 +468,8 @@ export default {
name: name,
type: 'line',
data: d,
smooth: true
smooth: true,
sampling: 'lttb'
};
let seriesArrayNames = seriesArray.map(m => m.name);
if (seriesArrayNames.includes(name)) {