antvis/G6




The issue has been closed
[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 / 请选择