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

appendData 数据量达到3000才开始渲染 #7718

Closed
Truantboy opened this Issue Feb 5, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Truantboy

Truantboy commented Feb 5, 2018

One-line summary [问题简述]

appendData 新增的数据量达到3000才开始渲染。

Version & Environment [版本及环境]

  • ECharts version 4.0.2 [ECharts 版本]:
  • Chrome 版本 62.0.3202.62(正式版本) (32 位) [浏览器类型和版本]:
  • win7 专业版[操作系统类型和版本]:

Expected behaviour [期望结果]

期望在第一次appenddata之后,即使数据达不到3000也能更新。
如果就这么设计的,请在API中写明。

ECharts option [ECharts配置项]

option = {
    animation: true,
    xAxis: {},
    yAxis: {},
    series: [{
        data: [[0,0],[3005,3005]],
        type: 'scatter',
        symbolSize:2
    }]
};
myChart.setOption(option);
var tp = []
var new_data_num = 2997; //改成2998就可以正常渲染
for(var i=1;i<new_data_num;i++){
  tp[i] = [i,100];
}
myChart.appendData({
  seriesIndex: 0,
  data: tp
});

Other comments [其他信息]

@100pah 100pah closed this in a6a5887 Feb 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment