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

🧐[问题] #2811

Closed
junhui75165 opened this issue Dec 18, 2024 · 1 comment
Closed

🧐[问题] #2811

junhui75165 opened this issue Dec 18, 2024 · 1 comment

Comments

@junhui75165
Copy link

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

这个文本溢出的是通过什么参数配置的,看了半天文档也没找到。

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

<Pie data={policyMoneyType} height={250} angleField={'value'} colorField={'name'} legend={{ color: {title: false, position: 'rightTop', rowPadding: 5}, position: 'right', itemName: {style: {fontSize: 12}}, }} radius={0.85} label={{type: 'inner', style: {opacity: 0}}} title={'金额'} />

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

image

@lxfu1
Copy link
Member

lxfu1 commented Dec 18, 2024

正常会默认向右填充的,如果配置了 padding ,可以结合 callback 处理一下。

    legend: {
      color: {
        position: 'right',
        itemLabelText: () => 'xx'
      },
    },

@lxfu1 lxfu1 closed this as completed Dec 18, 2024
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