Skip to content

[Bug] appendData动态添加实时数据出现只显示新数据历史数据消失的问题 #18076

@Zouyiniubi

Description

@Zouyiniubi

Version

5.4.0

Link to Minimal Reproduction

No response

Steps to Reproduce

Plot.txt
这是一个Vue组件,我在该组件若有新数据到来会调用receive_data函数往tempData和tempData1中push数据,每间隔4秒调用appendData以刷新数据,以期定期刷新,同时清空tempData和tempData1,数据量大约每秒十个点左右。

Current Behavior

在0-200秒时曲线(因为散点连续密集形成曲线,将其称为曲线)可正常刷新,每四秒定量增加散点数据,在大约300秒后开始出现吞点现象,只有新增的数据会被绘制出来,而之前的数据消失了,但是在浏览器中调试series.data里面的数据是正常的,而且鼠标放到对应的位置数据的tooltip也会出现,就是没有曲线图形;在大约600秒后图表刷新又变正常了,之前消失的数据也出现了,定时增加数据定时刷新一切正常。

修改代码后直接添加6000个自定义点,采用定时器调用appendData添加自定义新数据同样会出现历史数据消失,只显示新数据的问题
plottest.txt
我直接编写了一个html文件进行测试,同样的故障现象也出现了,表明这个问题和Vue无关

Expected Behavior

散点图定时增加,定时正常刷新,不吞掉历史数据

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions