antvis/G2



The issue has been closed
支持主动触发事件吗? #4458
Valar103769 posted onGitHub
场景: 多折线图,x是时间,tooltip:change 时, 右侧饼图显示当前日期的数据 <img width="1160" alt="image" src="https://user-images.githubusercontent.com/36926073/207256875-93c31058-c378-4870-b2d6-05c91e094d56.png">
chart.on('tooltip:change', (ev) => {
emit('tooltip:change', ev.data)
})
饼图直接使用的ev.data中的数据结构 如何主动触发 tooltip:change 时间? 以让饼图有一个初始值