import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart
.attr('marginLeft', 0)
.attr('marginRight', 0)
.attr('marginTop', 60)
.attr('marginBottom', 20)
.gauge()
.data({
value: {
target: 120,
total: 400,
name: 'score',
},
})
.legend(false)
.axis('y',{
position:'inner',
});
chart.render();
Describe the bug / 问题描述
坐标轴本应该在圆弧内侧,现在位置完全错乱了

Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
官网示例增加margin和position可直接复现
Version / 版本
Please select / 请选择
OS / 操作系统
Browser / 浏览器