VChart icon indicating copy to clipboard operation
VChart copied to clipboard

[WIP]fix: solve ciclePacking valueField field not work

Open LonelySnowman opened this issue 6 months ago • 1 comments

🤔 这个分支是...

  • [ ] 新功能
  • [x] Bug fix
  • [ ] Ts 类型更新
  • [ ] 打包优化
  • [ ] 性能优化
  • [ ] 功能增强
  • [ ] 重构
  • [ ] 依赖版本更新
  • [ ] 代码优化
  • [ ] 测试 case 更新
  • [ ] 分支合并
  • [ ] 发布
  • [ ] 网站/文档更新
  • [ ] demo 更新
  • [ ] Workflow
  • [ ] 其他 (具体是什么,请补充?)

🔗 相关 issue 链接

修复:https://github.com/VisActor/VChart/issues/3926

🔗 相关的 PR 链接

None

🐞 Bugserver 用例 id

None

💡 问题的背景&解决方案

circlePacking 中 valueField 字段不生效。

@visactor/vgrammar-hierarchy CirclePackingLayout 的 layout 方法仅解析 value 字段,不支持 field 映射,添加一个方法将 valueField 字段转化为 value 传入。

📝 Changelog

Language Changelog
🇺🇸 English Fixed the issue that circlePacking valueField field does not take effect
🇨🇳 Chinese 修复 circlePacking valueField 字段不生效问题

☑️ 自测

⚠️ 在提交 PR 之前,请检查一下内容. ⚠️

  • [x] 文档提供了,或者更新,或者不需要
  • [x] Demo 提供了,或者更新,或者不需要
  • [x] Ts 类型定义提供了,或者更新,或者不需要
  • [x] Changelog 提供了,或者不需要

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

LonelySnowman avatar Jun 04 '25 11:06 LonelySnowman

@xuanhun 辛苦抽空帮忙 review 下这个 PR。

LonelySnowman avatar Jul 02 '25 08:07 LonelySnowman