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

🐛[BUG] 漏斗图legend部分文字偏旁显示不全 #2839

Open
Vantown opened this issue Jan 16, 2025 · 1 comment
Open

🐛[BUG] 漏斗图legend部分文字偏旁显示不全 #2839

Vantown opened this issue Jan 16, 2025 · 1 comment

Comments

@Vantown
Copy link

Vantown commented Jan 16, 2025

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

一些笔画较多的文字,比如截图里这种签单、新建单据,顶部的文字都是被截取掉一部分,在itemName的style里设置lineHeight无效,只有设置textBaseline:'top'才正常,但是这样设置底部就剩下一半了

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

🏞 期望结果 [描述你原本期望看到的结果]

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

https://codesandbox.io/p/sandbox/p9ndq7

© 版本信息

ant-design里的plots的版本号是1.2.6
chrome的版本号是131.0.6778.266

  • ant-design-charts 版本: [e.g. 0.9.0]
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

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

Image

@Vantown
Copy link
Author

Vantown commented Jan 16, 2025

Image

Image
测试环境里拍照对比图,应该挺明显的差别,我下面放了文字以便和canvas对比

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