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
第一次点击 other,触发 legend:filter 事件,再次点击 other, 不触发,也就是连续两次点击的是相同的 图例项,不触发 legend:filter 事件
No response
`import { Chart } from '@antv/g2';
const chart = new Chart({ container: 'container' });
chart .interval() .data([ { genre: 'Sports', sold: 0 }, { genre: 'Strategy', sold: 115 }, { genre: 'Action', sold: 120 }, { genre: 'Shooter', sold: 350 }, { genre: 'Other', sold: 150 }, ]) .encode('x', 'genre') .encode('y', 'sold') .encode('color', 'genre') .style('minHeight', 50);
chart.on('legend:filter', e=>{ const {data} = e console.log('filter', data) })
chart.render();`
The text was updated successfully, but these errors were encountered:
chart.on('legend:reset', (e) => { const { nativeEvent } = e; if (!nativeEvent) return; console.log('end'); });
Sorry, something went wrong.
No branches or pull requests
问题描述
第一次点击 other,触发 legend:filter 事件,再次点击 other, 不触发,也就是连续两次点击的是相同的 图例项,不触发 legend:filter 事件
重现链接
No response
重现步骤
`import { Chart } from '@antv/g2';
const chart = new Chart({ container: 'container' });
chart
.interval()
.data([
{ genre: 'Sports', sold: 0 },
{ genre: 'Strategy', sold: 115 },
{ genre: 'Action', sold: 120 },
{ genre: 'Shooter', sold: 350 },
{ genre: 'Other', sold: 150 },
])
.encode('x', 'genre')
.encode('y', 'sold')
.encode('color', 'genre')
.style('minHeight', 50);
chart.on('legend:filter', e=>{
const {data} = e
console.log('filter', data)
})
chart.render();`
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: