antvis / antvis/G2Plot

🤔 [QUESTION] 关于扇形仪表盘FanGauge

Open
#3,755 0 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]
我在文档中看到有扇形仪表盘FanGauge,在使用过程中发现 模块“"@antv/g2plot"”没有导出的成员“FanGauge”
### 💻 Link to minimal reproduction

Please provide a link by forking these links [g2plot](https://codesandbox.io/s/g2plot-reproduction-template-gyej1) or GitHub repo. What is a minimal reproduction, and why is it required?

```react
import { FanGauge } from "@antv/g2plot"; // 模块“"@antv/g2plot"”没有导出的成员“FanGauge”。

const DemoGauge: React.FC<{ value: number }> = ({ value }) => {
const containerRef = useRef(null);
useEffect(()=>{
const container = containerRef.current;
const config = {
title: {
visible: true,
text: '扇形仪表盘',
},
width: 400,
height: 400,
value: value,
min: 0,
max: 100,
range: [0, 70],
format: (v) => {
return v + '%';
},
color: ['l(0) 0:#b0d0ff 1:#5f92f9'],
}
const fanGauge = new FanGauge(container, config);
fanGauge.render();

return () => {
fanGauge.destroy();
}
})

return

;
};
```
### 🏞 Expected result
![image](https://github.com/antvis/G2Plot/assets/46949218/88ff0cab-701a-4811-a78f-2f58ef0ec2e8)

### 🚑 Any additional [like screenshots]

* **G2Plot Version**: "@antv/g2plot": "^2.4.31",
* **Platform**: window11

Contributor guide

Open the contributing guide

Research direction

Compare the documentation entry for FanGauge with the @antv/g2plot v2.4.31 package exports, then run the provided React snippet in the linked G2Plot reproduction template. Done means the supported status and usage of FanGauge are clear and the documentation and package exports no longer disagree.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.