-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xAxis.type='time' + zoomData时卡顿问题 #8277
Comments
能否发我们下完整的能够复现的 option |
抱歉,option是动态修改的,数据2000条左右,主要配置:
其余的为默认设置。 感觉zoomData拖动时卡顿问题出在 x轴文本的格式化上 刚刚试了下,如果没有使用axisLabel则拖动流畅,添加格式化方法后会明显卡顿 然后xAxis.type='time' 时,从效果上看也是动态调整了axisLabel。 |
xAxis.type='time' 时通过以下方法解决:
|
@pissang 虽然个人已经解决卡顿问题,还是放上option供你们去寻找原因。 官方demo: http://echarts.baidu.com/examples/editor.html?c=dynamic-data2 电脑配置是小米pro顶配,在数据量4000时会明显卡顿,应该是渲染 series ** showSymbol, hoverAnimation ** 存在问题 代码
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
One-line summary [问题简述]
@pissang
使用折线图 series.length为2
已设置animation: false
xAxis.type='time' + zoomData时,目前1000条数据,当全部展示时卡顿比较严重,较小范围展示内存占用增加了100M。
同样的数据 xAxis.type='category' 时十分流畅。
Version & Environment [版本及环境]
小米pro 16G win10
Expected behaviour [期望结果]
卡顿效果能够优化
ECharts option [ECharts配置项]
Other comments [其他信息]
The text was updated successfully, but these errors were encountered: