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

[F2] (Text Shape) 使用多行文本布局后的坐标轴标签在图表整体布局不正确 #1961

Open
1 task
HuColin opened this issue May 16, 2024 · 0 comments

Comments

@HuColin
Copy link

HuColin commented May 16, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

对于超长的文本标签,使用 @antv/g 中的多行文本样式后,文本内容确实出现了换行,但是条形图的坐标轴区域宽度并没有因此缩小,导致图表左侧空置

<Axis field="x" style={{
  label: {
    wordWrap: true,
    wordWrapWidth: 38,
    textOverflow: 'ellipsis',
    maxLines: 2
  }
}} />
Environment Info
f2 5.4.5
System MacOS
Browser Chrome 124
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