antvis/G2

Do you want to work on this issue?

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

Tutorial example has bug: if a data point is removed, the tooltip color is off -- 缺少data point导致 tooltip颜色和折线颜色不符 #6457

mxye posted onGitHub

问题描述

这个tutorial实例: 如果我去除一两个datapoint,那么tooltip颜色会和折线颜色不符。比如蓝线上的tooltip是绿色的。也就是说,除非data没有任何缺失,否则tooltip不靠谱。实际应用中,折线图的data大多都会有缺失。

重现链接

https://g2.antv.antgroup.com/examples/general/line/#curved

重现步骤

1.打到tutorial页面https://g2.antv.antgroup.com/examples/general/line/#curved

  1. 在data中,去除第一行,London Jan; 然后再去除第四行,Tokyo Mar

3.移动鼠标到折线图上Mar处,观察tooltip即可

预期行为

期望相符,实际不符

平台

此bug与平台无关,因为这是官方tutorial实例。相关的平台是页面本身

屏幕截图或视频(可选)

<img width="611" alt="Screenshot 2024-09-06 at 9 55 40 AM" src="https://github.com/user-attachments/assets/83779e9a-e83a-4372-bddb-e76e71630207">

补充说明(可选)

实际应用中,折线图的data大多都会有缺失


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests