antvis/G2

仪表盘 中间文字 显示不需要的 toopTip #6382

saleemshenlin posted onGitHub

问题描述

如题。 image

重现链接

https://g2.antv.antgroup.com/zh/examples/general/gauge/#gauge-default

重现步骤

官网的例子

预期行为

这里应该隐藏

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

建议

  1. 修改默认对象 https://github.com/antvis/G2/blob/1aabab7da9df2b9609529e3eaca5d24b18bf7c17/src/mark/gauge.ts#L115-L126 在这个对象中加入tooltip 的配置
  2. 在配置的时候可以外部控制 https://github.com/antvis/G2/blob/1aabab7da9df2b9609529e3eaca5d24b18bf7c17/src/mark/gauge.ts#L242-L249 在这个对象增加 typescript ...resOptions, 类似 https://github.com/antvis/G2/blob/1aabab7da9df2b9609529e3eaca5d24b18bf7c17/src/mark/gauge.ts#L233-L241

@saleemshenlin 代码都标记出来了,直接来来一个 RP 把代码提交上来吧。

posted by hustcc 8 months ago

@BQXBQX 已跟进 PR。

posted by hustcc 5 months ago

Fund this Issue

$0.00
Funded

Pull requests