antvis/G2

[v5] legend positioning #4725

clmz posted onGitHub

how can I set the position of the legend below the chart, e.g. in v4:

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

but this (and many many more properties) don't work anymore and it seems that there's no doc for this?

futher: What leads to a cropped itemLabel?

image

when my code is like this:

.legend('color', { itemLabel: 'Total', layout: 'flex', width: 1000, });


Fund this Issue

$0.00
Funded

Pull requests