[Bug]: 仪表盘调整角度不生效
Author: xiaoke-1Created Apr 23, 2026Updated Apr 29, 2026
Labelswaiting for maintainer
Describe the bug / 问题描述
在仪表盘组件里通过坐标系改变起止角度没有生效
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
官方的仪表盘示例,增加角度设置就可复现
import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart
.gauge()
.coordinate({
//改变角度不生效
startAngle:-Math.PI / 2,
endAngle:Math.PI * 3
})
.data({
value: {
target: 120,
total: 400,
name: 'score',
},
})
.legend(false);
chart.render();Version / 版本
Please select / 请选择
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他
Source: antvis/G2