antvis / antvis/G2Plot

环状图如何在加大间隔的同时不挤占数据空间?🤔 [QUESTION]

Open
#3,029 3 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

### 🐛 环状图如何在加大间隔的同时不挤占数据空间?

### 💻 https://codesandbox.io/s/relaxed-elgamal-6hxkg?file=/index.ts

### 🏞 Expected result
const data = [
{ type: '分类一', value: 80 },
{ type: '分类二', value: 40 },
{ type: '分类三', value: 30 },
{ type: '分类四', value: 12 },
{ type: '分类五', value: 1 },
];
在这种数据下,分类五的数据显示就由于边框占据了数据的颜色块而显示不出来,有没有其他的方法?
![image](https://user-images.githubusercontent.com/51811652/146298674-557d4a7d-6345-47af-b7b9-822a2d7e098b.png)

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox's index.ts and reproduce the donut chart using the five data values shown in the issue. Inspect how the chart's spacing and border settings affect the smallest slice. Done means identifying a supported configuration or behavior that increases the visual gap without hiding the smallest data segment.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.