G2 icon indicating copy to clipboard operation
G2 copied to clipboard

图例 legend 配置问题

Open leon9508 opened this issue 2 years ago • 5 comments

1、给图例添加background只会应用在第一个图例上面; 2、无法自定义设置radio的大小及图形样式; 3、radio的大小会随itemHeight的值而变动,而希望设置itemHeight和radio大小不要关联。 image

leon9508 avatar Jul 26 '23 08:07 leon9508

@pearmini 可以给看下这个问题吗

leon9508 avatar Aug 08 '23 12:08 leon9508

这个是 G2Plot 吗?issue 中描述一下库以及版本,然后代码贴上可以复制的文本。

hustcc avatar Aug 22 '23 09:08 hustcc

不是G2Plot,就是g2的4.x 版本,地址: https://g2-v4.antv.vision/zh/examples/line/basic#curved

leon9508 avatar Oct 18 '23 02:10 leon9508

增加的代码是: chart.legend({ radio: { style: { fill: '#ff0' } }, background: { style: { fill: '#f00', strokeOpacity: 0, } }, itemHeight: 30 })

leon9508 avatar Oct 18 '23 02:10 leon9508

@hustcc 辛苦给看下~多谢啦

leon9508 avatar Oct 18 '23 02:10 leon9508