Skip to content

在vue的keep-alive的activated周期内,通过echartsInstance. appendData方法增量渲染地图散点图,提示Dom has no width or height #15228

@lixiaomei0921

Description

@lixiaomei0921

Version

4.9.0

Steps to reproduce

在vue项目中,使用地图加echarts渲染差不多200万量级的数据,使用了分片来获取数据,前端使用echartsInstance.appendData 方法来增量渲染页面,因为数据量巨大,所以想通过vue的keep-live来缓存数据,然后在keep-live的生命周期activated中,再次使用echartsInstance.appendData来增量渲染数据,结果会有告警信息"Dom has no width or height",导致图表渲染不出来。

What is expected?

大数据量缓存的情况下,图表能够正常加载出来

What is actually happening?

图表未能正常加载出来
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmissing-demoThe author should provide a demo.pendingWe 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