antvis/G2

5.x如何在展示图例的时候设置类似4.x中offset配置项的效果? #5635

voiddiddvue posted onGitHub

5.x版本去掉了legend.offsetX和offsetY功能,这样对定义图例位置很不友好,有方法实现吗


使用 transform 属性。

chart.interval().legend('color', { transform:`translate(100, 0)` })
posted by pearmini over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests