antvis/G6

G6中如何实现标尺功能? #5004

LeaveZzz posted onGitHub

问题描述

请问如何在G6中实现类似下图效果的标尺?标尺刻度与画布中的坐标对应,并且需要在拖拽画布、缩放画布时标尺刻度随之变化。 1 2

重现链接

重现步骤

预期行为

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


posted by Yanyan-Wang over 1 year ago

参考 Grid 的实现:

Grid 文档:https://g6.antv.antgroup.com/api/plugins#grid 源码:https://github.com/antvis/G6/blob/master/packages/plugin/src/grid/index.ts

感谢提供思路,已解决。

posted by LeaveZzz over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests