Skip to content
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

大数据量折线图性能问题 #10200

Closed
lr1739 opened this issue Apr 2, 2019 · 6 comments
Closed

大数据量折线图性能问题 #10200

lr1739 opened this issue Apr 2, 2019 · 6 comments
Labels
inactive Not active for some time or no response from the author. Will be closed soon. performance

Comments

@lr1739
Copy link

lr1739 commented Apr 2, 2019

Version

4.2.1

Steps to reproduce

var dataLength=10000;
var _xPoints = new Array(dataLength);
var first = 88;
for (var i = 0; i < dataLength; i ) {
_xPoints[i] = (first 0.025 * i).toFixed(3);
}
option = {
animation:false,
xAxis: {
type: 'category',
data: _xPoints
},
yAxis: {
type: 'value',
min:0,
max:100
},
series: [{
data: [],
type: 'line'
}]
};
function getRandomData(){
var data=[];
for (var i = 0; i < dataLength; i ) {
data.push(Math.floor(Math.random()*90));
}
return data;
}
setInterval(function(){
myChart.setOption({series:[{
data: getRandomData()
}]})
},500)

What is expected?

大数据量折线图能够流畅绘制

What is actually happening?

卡顿


动态更新折线图,折线最多能达到10多万个点。
在1万个点以上的时候,动态更新的时候就已经开始不流畅。
在数据量很大的情况下能否使用webgl对2D图形的绘制进行加速,highcharts就有类似的实现

@echarts-bot
Copy link

echarts-bot bot commented Apr 2, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Apr 2, 2019
@Ovilia
Copy link
Contributor

Ovilia commented Apr 3, 2019

建议将 showSymbol 设为 false,并且开启 samping

@Ovilia Ovilia added performance waiting-for-author and removed bug pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Apr 3, 2019
@lr1739
Copy link
Author

lr1739 commented Apr 3, 2019

samping

建议将 showSymbol 设为 false,并且开启 samping

showSymbol几乎没什么作用,sampling开启之后图形严重失真

@Ovilia
Copy link
Contributor

Ovilia commented Apr 4, 2019

可以提供下截图对比吗?

@nerffei
Copy link

nerffei commented Apr 5, 2019

我是8万个点显示,我的x轴类型设置的是value类型,我开了最大值采样, 没有遇到卡顿跟失帧真问题

@echarts-bot
Copy link

echarts-bot bot commented May 5, 2019

This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.

@Ovilia Ovilia added the inactive Not active for some time or no response from the author. Will be closed soon. label May 5, 2019
@echarts-bot echarts-bot bot closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Not active for some time or no response from the author. Will be closed soon. performance
Projects
None yet
Development

No branches or pull requests

3 participants