[Bug]: 仪表盘调整角度不生效
- Dominant language
- TypeScript
- Stars
- 12.6k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
### 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 / 其他
Contributor guide
Research direction
Start with the official gauge example and the supplied Chart coordinate configuration, then run it with the changed startAngle and endAngle values. Confirm the current rendered gauge behavior and trace how coordinate angles are applied; done means the configured angles visibly affect the gauge.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100