antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[docs] page exception #6659

wanghui2021 posted onGitHub

https://g6.antv.antgroup.com/zh/examples/layout/mechanism#change-data

Kind of issue

Broken demo

Issue description

初始页面 <img width="679" alt="image" src="https://github.com/user-attachments/assets/a79bbe69-519c-4071-abc1-779a1122a17e" /> type 切换为 large <img width="680" alt="image" src="https://github.com/user-attachments/assets/1f121cd0-05f5-409e-9279-b22662f804b7" /> type 切换为 small(此处可能需要多次切换) <img width="677" alt="image" src="https://github.com/user-attachments/assets/222009ff-b166-4135-9b42-1591eae10f43" />

控制台 <img width="825" alt="image" src="https://github.com/user-attachments/assets/2b5b755d-362d-465f-b3c7-52fb9620bb68" />

Context

No response


看起来您在使用 G6 的示例页面时遇到了问题,特别是在切换布局类型时出现了异常。这个问题可能是由于示例代码中的某些逻辑错误或浏览器兼容性问题导致的。

为了帮助您解决这个问题,您可以尝试以下步骤:

  1. 检查控制台错误信息:查看控制台中是否有任何错误信息,这些信息可能会提供有关问题的更多线索。
  2. 更新浏览器:确保您使用的是最新版本的浏览器,以避免由于浏览器不兼容导致的问题。
  3. 清除缓存:尝试清除浏览器缓存,然后重新加载页面。
  4. 查看示例代码:如果您有访问示例代码的权限,可以检查代码中是否有任何明显的错误或不兼容的地方。

如果这些步骤没有解决问题,您可以在 G6 的 GitHub 仓库中查看是否有类似的问题报告,或者提交一个新的问题报告以获得进一步的帮助。

如果您需要更多的帮助,请随时告诉我!

<details> <summary>🪧 Tips</summary> For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. </details>

posted by petercat-assistant[bot] 4 months ago

这不是Bug,请在布局完成后在进行切换。 正常开发过程中,你需要 await layout 过程

posted by Aarebecca 4 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests