antvis/G2








The issue has been closed
更新关闭 label 的文档 #5918
YY88Xu posted onGitHub
问题描述
<img width="182" alt="image" src="https://github.com/antvis/G2/assets/14836228/331dc883-673f-479f-8ea4-9b6ec8c10fa8"> <img width="189" alt="image" src="https://github.com/antvis/G2/assets/14836228/6e858e54-582a-4410-b34e-511e22952e46"> 通过点击 checkbox 控制 interval 显示 label const totalHCInterval = eeChart.getNodesByType('interval')[1] totalHCInterval.label({ text: 'TotalHc', // 指定绑定的字段 fill: '#ffffff', fontSize: 12, position: 'bottom', }) 再次点击 checkbox 控制 interval 不显示 label const totalHCInterval = eeChart.getNodesByType('interval')[1] totalHCInterval.label(false) 不行
重现链接
No response
重现步骤
No response
预期行为
No response
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response