VisActor / VisActor/VChart

[Bug] Taro 4.x中使用时,更新spec不会刷新图表

Open
#4,254 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug taro-vchart
Dominant language
TypeScript
Stars
1.8k
Forks
221
Avg merge
1d 6h
Merged PRs (30d)
26

Description

Version

2.0.6

Link to Minimal Reproduction

https://github.com/TTwilight/vcharts-demo

Steps to Reproduce
  1. 设置了一个自动刷新spec的值,触发了更新事件,但图表没有刷新
Current Behavior

<VChart type="weapp" spec={spec} options={{ // renderCanvas:'canvasId' // options3d: { // enable: false, // enableView3dTransform: false, // }, // mode: "miniApp", }} canvasId="canvasId" style={{ height: "45vh", width: "70%", // zIndex: 1, }} onChartInit={(chart) => { console.log("图表初始化完成:", chart); chartIns.current = chart; }} onChartReady={(chart) => { console.log("图表渲染完成:", chart); }} onChartUpdate={(chart) => { console.log("图表更新完成:", chart); }} />

Image Image
Expected Behavior

自动刷新spec的值,图表同步更新

Environment
- OS: Macos 26.0.1 
- Browser: chrome 141.0.7390.109(正式版本) (arm64)
- Framework: Taro 4.1.5
- 开发工具:微信开发者工具
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal reproduction at https://github.com/TTwilight/vcharts-demo and reproduce the issue using Taro 4.1.5 in the WeChat developer tools. Trace how the VChart component receives the changing spec and whether the update callback runs. Done means that automatically changing spec values refreshes the chart in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.