Skip to content

[Bug]: 同时显示两个双轴图是, 自定义渲染的tooltip 无法同时显示 #3127

@unicode6674

Description

@unicode6674

Describe the bug / 问题描述

下为配置:

interaction: {
              tooltip: {
                enterable: true,
                position: "bottom",
                offset: [24, 24],
                wait: 100,
                render: (_: any, tooltipData: { title: string; items: any[] }) => {
                 // ........
                  return (
                    <CustomTooltip
                      title={title}
                      items={items}
                      lineType={Object.values(OtherLineTypeEnum)}
                      extraData={data}
                      driverTooltipExtraItemClick={driverTooltipExtraItemClick}
                    />
                  );
                },
              },
            },

通过:

chart.emit("tooltip:show", {
                    data: { data: { x: devicePointerTime.value } },
                  });

显示两个图表的tooltip 时 无法同时显示

Reproduction link / 复现链接

No response

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

No response

Version / 版本

2.6.5

Please select / 请选择

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