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

[Feat]: How to implement the overflow prompt of the combo label text? (combo's label text is displayed beyond the width...) ) #6611

Closed
Cherry860 opened this issue Dec 6, 2024 · 4 comments
Labels
status: waiting for author Issue with insufficient information

Comments

@Cherry860
Copy link

Describe the feature / 功能描述

If the combo text is too long, an ellipsis (ellipsis) is displayed when it exceeds a certain width.
1、使用label配置未生效。Currently, the labelCfgStyle configuration fails.
style: {
fill: '# 666',
width: 100,
overflow: 'hidden',
textOverflow: 'ellipsis'
}
2、Labels are customized based on rect. The label cannot be rewritten during document display.
基于rect类型自定义combos, 无法覆盖原有label,
官网原文:在 drawShape 方法中不需要为 label 增加图形,父类方法将会自动增加默认的 label,可以通过配置的方式指定 label 的位置和样式;

Are you willing to contribute? / 是否愿意参与贡献?

Please select / 请选择

@Cherry860 Cherry860 added the status: waiting for maintainer These issues have not yet been reviewed by a maintainer label Dec 6, 2024
@github-actions github-actions bot changed the title [Feat]: How to implement the overflow prompt of the combo label text? (combo的label文字实现超出宽度显示...) [Feat]: How to implement the overflow prompt of the combo label text? (combo's label text is displayed beyond the width...) ) Dec 6, 2024
@Cherry860
Copy link
Author

Can combo labels of the Rect type be rewritten?

@yvonneyx
Copy link
Contributor

yvonneyx commented Dec 6, 2024

4.0? 4.0 无法通过配置处理超长文本,可参考:https://g6-v4.antv.vision/zh/examples/item/label/#labelLen

@yvonneyx
Copy link
Contributor

yvonneyx commented Dec 6, 2024

5.0 中现已支持 https://g6.antv.antgroup.com/examples/element/label/#ellipsis 推荐升级~

@yvonneyx yvonneyx added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues have not yet been reviewed by a maintainer labels Dec 6, 2024
Copy link

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. | 由于该 issue 缺少关键信息且已闲置 7 天,现已自动关闭。如需重新打开此问题,请提供所缺失的信息。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants