We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chart.legend({ custom: true, items: [ { name: '城市 1', id: 'city-1', marker: { symbol: 'triangle', style: { r: 4, fill: 'red' } }, }, { name: '城市 2', id: 'city-2', }, ], }); chart.on('legend-item:click', (ev) => { const { type, view, gEvent, data, x, y, clientX, clientY, target} = ev; console.log('data', data); // undefind });
自定义图例事件data获取不到,如何通过自定义事件隐藏相对于图形呢?
The text was updated successfully, but these errors were encountered:
在 target 中可以拿到对应触发点击事件的 shape,在这个 shape 中有对应图例项的数据,然后就可以去做过滤了。
Sorry, something went wrong.
No branches or pull requests
自定义图例事件data获取不到,如何通过自定义事件隐藏相对于图形呢?
The text was updated successfully, but these errors were encountered: