antvis/G2

图例Legend的maxWidth小于maxItemWidth,造成图例项LegendItem显示不全 #3868

qiaoyuwen posted onGitHub

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

重现链接

Steps to reproduce

屏幕快照 2022-04-13 下午4 10 08

Environment Info
g2 4.1.50
System -
Browser -

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


https://github.com/antvis/G2/blob/dc5863164daeef4f2472b811cbbce0576dd1a28d/src/chart/controller/legend.ts#L504

获取分类图例的配置项这里会出现maxWidth < maxItemWidth的情况

posted by qiaoyuwen about 3 years ago

我这边也遇到类似的麻烦 我这个是 items 显示不全 设置了itemWidth的话直接就一小部分被隐藏了

posted by yehoan about 3 years ago

image

posted by yehoan about 3 years ago

可以试试 5.0,这个地方的图例应该会缩略。

posted by pearmini 11 months ago

Fund this Issue

$0.00
Funded

Pull requests