Skip to content

[Bug]: 当数据量很大时, 通过chart.emit("tooltip:show") 时, tooltip 显示两个xField 的数据, #3136

@unicode6674

Description

@unicode6674

Describe the bug / 问题描述

数据量:x轴每秒一个, 24小时

hover 时正常显示

Image

当点击后, 通过 emit('tooltip: show')固定tooltip 时, 会出现以下情况

 chart.on("plot:click", () => {
 chart.emit("tooltip:disable");
        chart.emit("tooltip:show", {
          data: {
            data: { x: devicePointerTime.value },
          },
        });
    });

效果如图

Image

一个奇怪的点:
如果使用slider, slider 拖动一下, 上面的问题就不存在了

Reproduction link / 复现链接

No response

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

No response

Version / 版本

🆕 2.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions