antvis/G2

Do you want to work on this issue?

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

【Bug】V5版本,point 图表有 scrollBar 后,文字label并不会随滚动条滚动 #6109

YY88Xu posted onGitHub

问题描述

<img width="1170" alt="image" src="https://github.com/antvis/G2/assets/14836228/421e5eef-9017-4e92-83ed-0cf3e2b505aa"> 滚动滚动条,label不随着滚动条移动而动

重现链接

No response

重现步骤

/**

const chart = new Chart({ container: 'container', autoFit: true, });

chart .point() .data({ type: 'fetch', value: 'https://gw.alipayobjects.com/os/bmw-prod/551d80c6-a6be-4f3c-a82a-abd739e12977.csv', }) .encode('x', 'date') .encode('y', 'close') .scrollbar('x', { ratio: 0.1 }) .transform({ type: 'sample', thresholds: 200, strategy: 'max', }).label({ text: '12' })

chart.render();

预期行为

No response

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests