Skip to content
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

🐛 [BUG]双轴图添加标注 #3084

Closed
HuntSweet opened this issue Jan 21, 2022 · 1 comment · Fixed by #3119
Closed

🐛 [BUG]双轴图添加标注 #3084

HuntSweet opened this issue Jan 21, 2022 · 1 comment · Fixed by #3119
Assignees
Labels
Question Further information is requested

Comments

@HuntSweet
Copy link

🐛 Question description [Please make everyone to understand it]

请问如何给双轴图动态地(比如说点击plot时)添加标记?
我使用addAnnotations方法给双轴图添加标记,但是是失效的
image
所以,请问有没有什么方法添加标记

💻 Link to minimal reproduction

Please provide a link by forking these links g2plot or GitHub repo. What is a minimal reproduction, and why is it required?

🏞 Expected result

🚑 Any additional [like screenshots]

  • G2Plot Version:
  • Platform:
@connono
Copy link
Contributor

connono commented Feb 14, 2022

传进去的参数格式有问题,应该是 Annotation,例如
iShot2022-02-14 16 57 01
目前双轴图等具有分view的图表使用addAnnotations,annotation会固定在左下角,等request通过了就可以指定view添加annotations,并且位置可以调整。

@connono connono closed this as completed Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
2 participants