antvis / G2

📊 The concise and progressive visualization grammar.
https://g2.antv.antgroup.com
MIT License
12.09k stars 1.59k forks source link

版本升级兼容性问题 --- 3.x 的饼图-花瓣示例移植到 4.x 5.x 都乱了 #4679

Closed soibhanZhangxb closed 1 year ago

soibhanZhangxb commented 1 year ago

antv/g2 3.x 的 饼图-花瓣示例移植到 4.x 5.x 都乱了,变成如下形状

image

原 3.x 饼图-花瓣位置,https://antv.antfin.com/zh-cn/g2/3.x/demo/pie/pie-platelets.html

hustcc commented 1 year ago

G2 的 v4,v5 都没有 platelet 这个 shape,有兴趣来 v5 中贡献吗?

soibhanZhangxb commented 1 year ago

那这里应该怎么迁移啊,用那个? 还有类似这样的值的文档里面也没找到,那里有? 先研究学习后看看自己是否有能力啊

hustcc commented 1 year ago

我写了一篇文章来介绍使用 G2 5.0 怎么绘制 花瓣图。《如何用 AntV 绘制一个好看的花瓣饼图》,代码在文章最后面。

预览效果:

image