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

Closes #2728
This commit is contained in:
Captain.B 2021-05-12 15:40:24 +08:00 committed by 刘瑞斌
parent 26fa767559
commit ced82e4272
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)) {