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

middleGroup tooltip没有跟着偏移 #3428

Closed
wangjunhong opened this issue May 19, 2021 · 4 comments
Closed

middleGroup tooltip没有跟着偏移 #3428

wangjunhong opened this issue May 19, 2021 · 4 comments

Comments

@wangjunhong
Copy link

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

// 饼图左边移动
chart.middleGroup.move(-120, 0);
image

@hustcc
Copy link
Member

hustcc commented May 19, 2021

能给一个在线的实例可以调试吗?

@wangjunhong
Copy link
Author

能给一个在线的实例可以调试吗?

找个饼图就可以复现了
通过修改padding暂时解决了
const chart = new Chart({
container: props.id,
autoFit: true,
padding: [20, 180, 0, 20],
});

@hustcc
Copy link
Member

hustcc commented Oct 8, 2021

image

测试是 ok 的。

@hustcc hustcc closed this as completed Oct 8, 2021
@Randysheng
Copy link

image

测试是 ok 的。

在官网这个示例中加chart.middleGroup.move(-120, 0);后,是存在问题的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants