antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[Bug]: 双轴多折线条形图。筛选图例后,再resize重新渲染,最后几列的tooltip渲染不出 #6756

Tom-front posted onGitHub

<!-- Failed to upload "屏幕录制2025-04-11 16.48.16.mov" -->

Describe the bug / 问题描述

参考官网的双轴多折线条形图例子

https://g2.antv.antgroup.com/zh/examples/general/dual#dual-axis-multi-line-bar

复现视频:https://www.youtube.com/watch?v=UesarY5CUeQ

Steps to Reproduce the Bug or Issue / 重现步骤

  1. 参考官网的双轴多折线条形图例子
  2. 筛选去掉蓝色的waiting图例,
  3. 再拖动Splitter分隔面板,进行resize后。
  4. 鼠标悬浮在最后几列上,没有出现tooltip提示

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

posted by Tom-front 16 days ago

感觉是一个 bug,worldTransform 的值错误了,导致了 isOutX 变成了 true

<img width="668" alt="Image" src="https://github.com/user-attachments/assets/911fc383-ac7e-4f16-8b8c-1f4810a6258e" />

<img width="757" alt="Image" src="https://github.com/user-attachments/assets/60fcc625-99c6-4a55-b93a-f75dfc2ac09f" />

posted by BQXBQX 15 days ago

有办法修复 getWorldTransform 的取值问题吗?我们实际图表时,会存在先筛选图列,后resize的交互场景。

posted by Tom-front 13 days ago

I believe I found a solution to your problem. Check it out here click

posted by amertrustweech 10 days ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests