G2 icon indicating copy to clipboard operation
G2 copied to clipboard

快来一起迁移 4.0 的简单案例吧 ❤️‍🔥❤️‍🔥❤️‍🔥

Open pearmini opened this issue 2 years ago • 8 comments

AntV Open Source Contribution Plan(可选)

  • [X] 我同意将这个 Issue 参与 OSCP 计划

Issue 类型

混合,多人任务

任务介绍

G2 5.0 的案例相对于 4.0 的案例会更加复杂一点。为了方便新的开发者能更好的入门 G2 5.0 的语法,团队决定迁移 4.0 中以一些简单的案例到 5.0 中。

下面是一些注意事项:

  • 与其说迁移,更像是用 5.0 的语法去绘制 4.0 的图表。所以不要局限于 4.0 的声明方式,看看能不能用 5.0 更简洁优雅地绘制出同样的图表。
  • 每个图表种类是一个任务,不同任务的类型不同,详见每个任务。
  • 每个人只能认领一个任务,在对应 issue 回复认领即可。
  • 案例截图在贴在对应的 PR 描述里面,我们会及时的上传图片,然后把对应链接评论在 PR 里面。
  • 截图时候尽量不设置 autoFit 为 false,保证截图的比例为默认宽高比。
  • 因为 4.0 网站访问速度较慢,所以下面贴的是代码地址,如果希望预览效果,替换链接前缀 https://github.com/antvis/G2/blob/master/https://g2-v4.antv.vision/zh 即可。

包含的任务如下,大家请尽情展现想象力吧!

  • [x] 折线图:https://github.com/antvis/G2/issues/5896
  • [x] 面积图:https://github.com/antvis/G2/issues/5897
  • [x] 直方图:https://github.com/antvis/G2/issues/5898
  • [x] 饼图:https://github.com/antvis/G2/issues/5899
  • [x] 玫瑰图:https://github.com/antvis/G2/issues/5900
  • [x] 径向图:https://github.com/antvis/G2/issues/5902
  • [x] 雷达图:https://github.com/antvis/G2/issues/5903
  • [ ] 色块图:https://github.com/antvis/G2/issues/5904
  • [x] 股票图:https://github.com/antvis/G2/issues/5905

参考说明

参考这个 PR https://github.com/antvis/G2/pull/5893

pearmini avatar Dec 07 '23 06:12 pearmini

认领雷达图

kun6696 avatar Dec 07 '23 06:12 kun6696

@kun6696 去雷达图任务回复一下:https://github.com/antvis/G2/issues/5903 决定还是把任务拆开好!

pearmini avatar Dec 07 '23 06:12 pearmini

@pearmini 请问案例的图片,应该怎么上传?

li1615882553 avatar Dec 10 '23 13:12 li1615882553

案例截图在贴在对应的 PR 描述里面,我们会及时的上传图片,然后把对应链接评论在 PR 里面。

@li1615882553

pearmini avatar Dec 10 '23 14:12 pearmini

认领面积图

foolvip avatar Feb 21 '24 08:02 foolvip

认领面积图

https://github.com/antvis/G2/issues/5897 欢迎贡献!可以在这里去回复一下。

pearmini avatar Feb 21 '24 08:02 pearmini

你好请问一下社区有交流群吗?

LofiSu avatar Jul 20 '24 05:07 LofiSu

直方图和色块图还可以认领吗

LofiSu avatar Jul 20 '24 06:07 LofiSu