antvis/G2

g2 v5 无法将图例展示在 bottom-center 位置 #6150

functionwell posted onGitHub

问题描述

chart.legend({
  position: 'bottom-center',
});

上述写法无法将图例展示在图表中间下面的位置,直接会不展示图例

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows]
  • 网页浏览器: [Google Chrome]

屏幕截图或视频(可选)

image

补充说明(可选)

No response


这样写 参考文档里的布局部分 https://g2.antv.antgroup.com/spec/component/legend .legend('color', { position: 'bottom', layout: { justifyContent: 'center' } })

posted by interstellarmt 4 months ago

Fund this Issue

$0.00
Funded

Pull requests