apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
59.76k stars 19.58k forks source link

[Bug] the tree graph center is changed when zoom property is set to the options or when change zoom of the tree graph instance #17207

Open PhoenixMenia opened 2 years ago

PhoenixMenia commented 2 years ago

Version

5.2.2

Link to Minimal Reproduction

https://codesandbox.io/s/polished-star-6sq7li?file=/src/index.js

Steps to Reproduce

  1. create echarts tree instance.
  2. click the +/- button on the demostration.
  3. recall chart.setOptions() and change the zoom number of the instance
  4. you can see the tree graph center is not on the canvas center

Current Behavior

see the steps to reproduce for details...

Expected Behavior

the tree graph center is expected to auto fix the canvas center when manually set zoom of the graph

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

PhoenixMenia commented 1 month ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。