antvis/G2



Do you want to work on this issue?
You can request for a bounty in order to promote it!
5.x使用了SVGRenderer,外部容器设置scale缩放时,tooltip位置和大小显示异常 #6559
yyhdev posted onGitHub
问题描述
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;
}
重现链接
https://codesandbox.io/p/devbox/kl2rv9
重现步骤
1、进入页面 2、将鼠标移动到柱体上,查看错误
预期行为
tooltip展示大小和位置正常
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response