antvis/G2

legend 自定义,name和value希望可以增加横向排列和竖向排列 #3812

guijue-code posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

统计看起来更直观。图表展示占比,图例展示数量

What does the proposed API look like?

chart.legend({ items:data.map((item,index)=>{ name:item.name, value:item.value, // 这里增加 layout:vertical | horizontal, ......... }) })

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


可以发一个截图看看你希望的效果吗?

posted by hustcc almost 3 years ago

A5D74A18-713D-4F5C-8D61-C9153B815782

posted by guijue-code almost 3 years ago

这个能力暂时内置不会支持,可以试试自定义图例

posted by pearmini 11 months ago

Fund this Issue

$0.00
Funded

Pull requests