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

5.x如何在展示图例的时候设置类似4.x中offset配置项的效果? #5635

Closed
voiddiddvue opened this issue Oct 12, 2023 · 1 comment

Comments

@voiddiddvue
Copy link

5.x版本去掉了legend.offsetX和offsetY功能,这样对定义图例位置很不友好,有方法实现吗

@pearmini
Copy link
Member

使用 transform 属性。

chart.interval().legend('color', { transform:`translate(100, 0)` })

@antvis antvis locked and limited conversation to collaborators Oct 13, 2023
@pearmini pearmini converted this issue into discussion #5637 Oct 13, 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

2 participants