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
treemap每一项数据 label文字大小怎么设置 label={{ style: { fontSize:20,//通过数据设置 } }}
No response
The text was updated successfully, but these errors were encountered:
.style('labelFontSize', 10) .style('labelFontSize', (d) => 10)
可以写一个具体的字体数字,也可以使用回调。
Sorry, something went wrong.
.style('labelFontSize', 10) .style('labelFontSize', (d) => 10) 可以写一个具体的字体数字,也可以使用回调。
dv.source(datas, { type: 'hierarchy', }).transform({ field: 'value', type: 'hierarchy.treemap', tile: 'treemapResquarify', as: ['x', 'y'], });
return ( <> <TreemapChart height={800} data={dv.rows.data} description={{visible: false}} colorField='name' label={{ style: { textBaseline: 'middle', // fontSize:20, }, }} </TreemapChart> </> )
请问在哪写回调
No branches or pull requests
问题描述
treemap每一项数据 label文字大小怎么设置
label={{
style: {
fontSize:20,//通过数据设置
}
}}
重现链接
No response
重现步骤
No response
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: