关于legend分页的疑问 #5873
Unanswered
cuidong626
asked this question in
Q&A
关于legend分页的疑问
#5873
Replies: 1 comment
-
padding 指定的是组件绘制区域大小,组件会自适应,你可以用 marginTop |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
问题描述
如何使用legend的分页功能?
下面链接是官方的演示demo,缩小宽度增加如下代码.
.legend('color', { itemMarker: 'circle', maxRows:1 })
https://g2.antv.antgroup.com/examples/component/label#contrastReverse
观察到 legend进行了分页,每页占一行。
接下来增加一个paddingTop的配置,
paddingTop:100
此时发现每页占了两行?这是什么问题?
重现链接
https://codesandbox.io/p/sandbox/blissful-merkle-6t8frz?file=%2Findex.ts
重现步骤
No response
预期行为
1.期望paddingTop 不会影响的分页所占的行数
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
Beta Was this translation helpful? Give feedback.
All reactions