Reputation: 1
Trying to place the legend at the bottom of the chart for any graph, but don't see any examples and the documentation does not provide a solution it seems (unless theres something I've missed). Any help would be appreciated.
How it currently looks: Chart
But I want the legend to be at the bottom of the chart, seems like a basic operation for such a complex library.
https://ant-design-charts.antgroup.com/en/options/plots/component/legend#%E5%9B%BE%E4%BE%8B%E9%A1%B9
I have tried:
config: { legend: { position: 'bottom'}, }
but doesn't seem to work. Seems to work easier on F2/Ant but thats more for mobile and using ant-design-charts for my solution.Upvotes: 0
Views: 568
Reputation: 13
const pieConfig = {
----OTHER VALUE----
legend: {
color: {
title: true, // try passing this property
position: 'top',
rowPadding: 5,
},
},
}
have your tried something like this?
Upvotes: 1