antvis/G6

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

Cherry860 posted onGitHub

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 / 请选择


Can combo labels of the Rect type be rewritten?

posted by Cherry860 5 months ago

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

posted by yvonneyx 5 months ago
posted by yvonneyx 5 months ago

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 天,现已自动关闭。如需重新打开此问题,请提供所缺失的信息。。

posted by github-actions[bot] 4 months ago

Fund this Issue

$0.00
Funded

Pull requests