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

能不能设置环形图的提示信息的字体大小? #39

Closed
yanhan569046480 opened this issue Jul 9, 2018 · 2 comments
Closed

Comments

@yanhan569046480
Copy link

const text = group.addShape('Text', {
attrs: {
x: point2.x,
y: point2.y,
text: origin._origin.department + '\n' + origin._origin.personCount + '人(' + origin._origin.departureRate + ')',
fill: '#808080',
textAlign: 'left',
textBaseline: 'bottom',
// fontSize: 12
},
style: {
// fontSize: 14
fontSize: 12
}
});

@simaQ 小姐姐,如上面,能不能设置环形图的提示信息的字体大小?

@simaQ
Copy link
Contributor

simaQ commented Jul 9, 2018

在 attrs 上设置 fontSize 就可以了,api 在这里: https://antv.alipay.com/zh-cn/f2/3.x/api/g.html#_Text-%E6%96%87%E6%9C%AC

@yanhan569046480
Copy link
Author

嗯嗯,搞定了,谢谢

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

2 participants