We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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 小姐姐,如上面,能不能设置环形图的提示信息的字体大小?
The text was updated successfully, but these errors were encountered:
在 attrs 上设置 fontSize 就可以了,api 在这里: https://antv.alipay.com/zh-cn/f2/3.x/api/g.html#_Text-%E6%96%87%E6%9C%AC
Sorry, something went wrong.
嗯嗯,搞定了,谢谢
No branches or pull requests
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 小姐姐,如上面,能不能设置环形图的提示信息的字体大小?
The text was updated successfully, but these errors were encountered: