BizCharts bizchart 如何实现g2chart.legend({ position: 'right', radio: {} });

uxhixvfz  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(41)

BizCharts Version:^4.1.14
Platform:pc
Mini Showcase(like screenshots):
forck and create a demo: https://bizcharts.net/product/BizCharts4/demo/306

ijnw1ujt

ijnw1ujt1#

bizchart没有注册list-radio相关的交互,手动搞一下,关键代码如下:
`
import ListFocus from '@antv/g2/lib/interaction/action/component/list-focus';
import ListRadio from '@antv/g2/lib/interaction/action/component/list-radio';
import { registerAction } from 'bizcharts';
registerAction('list-radio', ListRadio);
registerAction('list-focus', ListFocus);

export default function xxxxx() {
return (
<div...>
<Chart ...xxxxx>

相关问题