antvis / antvis/f2-canvas

如何动态创建或刷新图表

Open
#4 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
121
Forks
16
PR merge metrics
No merged PRs in 30d

Description

业务中有个需求
1. 初始化时创建图表实例,但使用wx:if=false隐藏
2. 异步获取图表数据,然后changeData刷新图表数据,但是发现chart实例为null
请问需要异步的获取数据后,创建或者刷新图表这种需求,正确的应该如何做?

Contributor guide

No contributing guide indexed for this repository

Research direction

The report names no files, tests, or entry points. Start by tracing the chart component's initialization and asynchronous data path around wx:if=false and changeData; a complete resolution would define and verify the correct create-or-refresh behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.