G2 icon indicating copy to clipboard operation
G2 copied to clipboard

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

Open guijue-code opened this issue 3 years ago • 2 comments

  • [ ] 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, ......... }) })

guijue-code avatar Feb 17 '22 03:02 guijue-code

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

hustcc avatar Jun 23 '22 02:06 hustcc

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

guijue-code avatar Jun 23 '22 03:06 guijue-code