Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【V5】V4 中的 annotation 迁移到 V5 #5246

Closed
BinghuiXie opened this issue Jun 28, 2023 · 0 comments
Closed

【V5】V4 中的 annotation 迁移到 V5 #5246

BinghuiXie opened this issue Jun 28, 2023 · 0 comments

Comments

@BinghuiXie
Copy link
Contributor

  • G2 Version: V5
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

由于 V5 中把 annotation 都收敛到了 mark 里面

G2_v4 G2_v5
chart.annotation().arc(option) chart.arc()
chart.annotation().image(option) chart.image()
chart.annotation().line(option) chart.lineX()chart.lineY()
chart.annotation().text(option) chart.text()
chart.annotation().region(option) chart.region()chart.regionX()chart.regionY()
chart.annotation().regionFilter(option) 不直接支持
chart.annotation().dataMarker(option) 不直接支持
chart.annotation().dataRegion(option) 不直接支持
chart.annotation().shape(option) chart.shape()
chart.annotation().html(option) 不支持

目前看了一下对于 regionFilterdataMarker 以及 dataRegion 没有直接的 mark 可以绘制实现,而 html 没有找到能实现的方法,这四种目前是怎么处理的呢?尤其是针对 html 类型的

@antvis antvis locked and limited conversation to collaborators Jun 29, 2023
@pearmini pearmini converted this issue into discussion #5255 Jun 29, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant