Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.x使用了SVGRenderer,外部容器设置scale缩放时,tooltip位置和大小显示异常 #6559

Open
yyhdev opened this issue Dec 19, 2024 · 2 comments

Comments

@yyhdev
Copy link

yyhdev commented Dec 19, 2024

问题描述

5.x使用了SVGRenderer,外部容器设置scale缩放时,tooltip位置和大小显示异常

export function newChart(
  container: string | HTMLElement,
  options?: RuntimeOptions
): Chart {
  const renderer = new SVGRenderer();
  const chart = new Chart({
    container,
    autoFit: true,
    theme: 'classicDark',
    renderer,
    ...options,
  });
  return chart;
}

image

重现链接

https://codesandbox.io/p/devbox/kl2rv9

重现步骤

1、进入页面 2、将鼠标移动到柱体上,查看错误

预期行为

tooltip展示大小和位置正常

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@hustcc
Copy link
Member

hustcc commented Dec 19, 2024

@interstellarmt 这个好像类似的 issue 已经解决过的,看看。

@interstellarmt
Copy link
Contributor

@pearmini supportCSSTransform这个属性v5还支持吗,我没找到这个属性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants