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
您好 请教个问题: 想做一个框选的效果, 但是不是用g2自带的filter 而是想要拿到框选后的数据(准确说是x轴的时间),然后重新取发请求。目前通过回调函数能拿到context,以及通过context获得x,y坐标。请问我可以直接拿到框选后的数据吗?如果是要通过坐标自己计算的话,要如何计算呢? 谢谢
The text was updated successfully, but these errors were encountered:
duplicate with: #3755
Sorry, something went wrong.
Sorry, due to problems in the program's architecture design, we are unable to effectively fix the issues. But it fixed in G2 5.0, you can have a try.
chart.on('brush:filter', (event) => { const { selection } = event.data; const [domainX, domainY] = selection; const [minX, maxX] = domainX; const [minY, maxY] = domainY; console.log(minX, maxX, minY, maxY); });
No branches or pull requests
您好 请教个问题:
想做一个框选的效果, 但是不是用g2自带的filter 而是想要拿到框选后的数据(准确说是x轴的时间),然后重新取发请求。目前通过回调函数能拿到context,以及通过context获得x,y坐标。请问我可以直接拿到框选后的数据吗?如果是要通过坐标自己计算的话,要如何计算呢?
谢谢
The text was updated successfully, but these errors were encountered: