antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

图例 legend 配置问题 #5346

leon9508 posted onGitHub

1、给图例添加background只会应用在第一个图例上面; 2、无法自定义设置radio的大小及图形样式; 3、radio的大小会随itemHeight的值而变动,而希望设置itemHeight和radio大小不要关联。 <img width="1024" alt="image" src="https://github.com/antvis/G2/assets/25746834/bf86fca7-2e31-4723-8bc4-b07da4f0be77">


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

posted by leon9508 over 1 year ago

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

posted by hustcc over 1 year ago

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

posted by leon9508 over 1 year ago

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

posted by leon9508 over 1 year ago

@hustcc 辛苦给看下~多谢啦

posted by leon9508 over 1 year ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests