antvis/G2

labelAutoEllipsis属性在图表只有一条数据的时候似乎没有生效 #6493

MonsterXue posted onGitHub

问题描述

labelAutoEllipsis、labelAutoWrap、labelAutoRotate等属性在图表只有一条数据的时候似乎没有生效,两条以上显示都是正常的,不知道是否时属性配置错误

重现链接

No response

重现步骤

image image

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


labelAutoEllipsis、labelAutoWrap、labelAutoRotate 这些策略只在设置了坐标轴的高度才生效。具体设置方法是:

  • 如果是 x 轴,就设置图表的 paddingBottom
  • 如果是 y 轴左侧,就设置图表的 paddingLeft
  • 以此类推
posted by hustcc 6 months ago

Fund this Issue

$0.00
Funded

Pull requests