🐛 [BUG] gauge.axis 显示异常
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Bug description [Please make everyone to understand it]
> Please provide a link by forking these links [G2Plot](https://codesandbox.io/s/g2plot-issue-template-gzfdq?file=/index.ts) or GitHub repo, a minimal reproduction.
* _Required_ **Link to minimal reproduction**:
### 📷 Step to reproduce
```js
import { Gauge } from '@antv/g2plot';
const gauge = new Gauge('container', {
percent: 0.75,
range: {
color: '#30BF78',
},
indicator: {
pointer: {
style: {
stroke: '#D0D0D0',
},
},
pin: {
style: {
stroke: '#D0D0D0',
},
},
},
axis: {
label: {
formatter(v) {
return Number(v) * 100;
},
},
subTickLine: {
count: 3,
},
},
statistic: {
content: {
formatter: ({ percent }) => `Rate: ${(percent * 100).toFixed(0)}%`,
style: {
color: 'rgba(0,0,0,0.65)',
fontSize: 48,
},
},
},
});
gauge.render();
setTimeout(()=>{
gauge.update({axis:false})
},1000)
setTimeout(()=>{
gauge.update({axis:{}})
},5000)
```
### 🏞 Expected result
轴线切换显示隐藏能更正常
### 🚑 Any additional [like screenshots]


* **G2Plot Version**: latest
* **Platform**: win
Contributor guide
Assessment
This issue has not been assessed yet.