-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed
Labels
pendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
One-line summary [问题简述]
动态绘制实时曲线,前端使用vue框架,绘制曲线的组件中保证只有一个echarts实例。同时最多绘制8条曲线,每条曲线最多有900个点组成(由于过多点页面卡顿且很快崩溃,每秒更新一次数据。初始渲染整个option,更新时渲染option中的series。目前测试,曲线绘制大概达到15个小时,页面崩溃,内存占用已达到一两个G。经测试发现使用setOption更新数据的前后时间差初始在450ms左右,运行一段一两个小时之后,该时间差偶尔能达到1s。
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:3.7.1
- Browser version [浏览器类型和版本]:谷歌 60.0.3112.90(正式版本)
- OS Version [操作系统类型和版本]:win7 64位
Expected behaviour [期望结果]
实时曲线一直运行,不卡顿不崩溃。
ECharts option [ECharts配置项]
option = title: {
text: ''
},
tooltip: {
trigger: 'axis'
},
legend: {
top: 10,
left: 'center',
data: this.legendMsg
},
xAxis: {
type: 'time',
splitNumber:20,
splitLine: {
show: false
}
},
yAxis: {
type: 'value',
splitLine: {
show: false
}
},
series: this.msg
}
//var num=0;
//num++
//series为数据,存储多组曲线的配置及数据。arr为与“动态数据+时间坐标轴”中数据结构一致。
series[num]={
name: obj,
type: 'line',
step:'start',
showSymbol: false,
hoverAnimation: false,
data: arr
}Other comments [其他信息]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
