antvis/G2


The issue has been closed
仪表盘 中间文字 显示不需要的 toopTip #6382
saleemshenlin posted onGitHub
问题描述
如题。
重现链接
https://g2.antv.antgroup.com/zh/examples/general/gauge/#gauge-default
重现步骤
官网的例子
预期行为
这里应该隐藏
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
No response
补充说明(可选)
建议
- 修改默认对象 https://github.com/antvis/G2/blob/1aabab7da9df2b9609529e3eaca5d24b18bf7c17/src/mark/gauge.ts#L115-L126 在这个对象中加入tooltip 的配置
- 在配置的时候可以外部控制
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