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

🧐[问题] #2840

Open
YHCCYUX opened this issue Jan 17, 2025 · 0 comments
Open

🧐[问题] #2840

YHCCYUX opened this issue Jan 17, 2025 · 0 comments

Comments

@YHCCYUX
Copy link

YHCCYUX commented Jan 17, 2025

🧐 问题描述 [详细地描述问题,让大家都能理解]

const data = [
{ name: '张三', value: 100, koko: 'sdsdsds', color: 'red', fontSize: 60 },
{ name: 'lisu', value: 100, koko: 'sdsdsds',color: 'black', fontSize: 20 }
];
const config = {
width: 1000,
height: 800,
autoFit: false,
fontSizeField: 'fontSize',
data: {
// value: 'https://gw.alipayobjects.com/os/antvdemo/assets/data/antv-keywords.json'
value: data
},
colorField: 'color',
layout: {
imageMask: IMG
},
tooltip: {
title: 'name',
items: [{ name: 'ii', field: 'value' }]
},
textField: 'name',
legend: false
};
这段代码里面字号可以跟着权重走吗,请问一下
还有,文字之间的空隙有的时候特别大,怎么设置可以紧凑一点吶,辛苦解答一下

💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]

🚑 其他信息 [如截图等其他信息可以贴在这里]

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

1 participant