antvis/G2


The issue has been closed
Facet - Tooltip is active only for last mark. [SOLVED] #5908
JonasJonny posted onGitHub
问题描述
If you add more marks to the chart, only last one have active Tooltip.
重现链接
https://g2.antv.antgroup.com/en/examples/composition/facet#rect-row
重现步骤
- Unchanged link example with "facetRect.point()" (First mark) - Tooltip is working.
- We can add second mark
// First mark facetRect .point() .encode('x', 'x') .encode('y', 'y');
// Second mark facetRect .interval() .encode('x', 'x') .encode('y', 'series');
``` 3. Tooltip is working only for interval "Second mark". Nothing shown for point "First mark" (Worked alone 1., Before 2.). 4. If we remove ".attr('inset', 10)" then points partly outside of facetRect have Tooltip.
预期行为
No response
平台
No response
屏幕截图或视频(可选)
No response
补充说明(可选)
No response