apache / apache/echarts

[Bug] sunburst.minAngle makes sectors overlapping

Open
#20,602 0 comments 0 reactions 0 assignees View on GitHub
bug en topic: sunburst
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.1

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=sunburst-simple&code=G4QwTgBAJiAuIQLwQNoCgIQN4cxAdiALYCmAXBAOQiUA0umoANgK7kQAsAbLgL72YceAsXaUARnQYRmbChw59aQvIVIVKAYynDZ7LgFYlKzGrFQdePRQCMx6WY0lLjEK3YGAHPeGOqAMxcZNzkIAAYlNABdAG40AHsAB1gAS3j8JGxcAGcSMBSSbIoTCFgAT0SxbJZ8cRYwbNggmHgKFpABPDAQKBSWItQw2ioATjCAUkoozswmEHESJmLpTDB4-Fh2IZWIf3iwIjhNsA0scV5izV4gzD38WABlFIAvdgAmRWF-aSIU_ABBfAAcyY7AAzBFMLw0LwYkA

### Steps to Reproduce

Check the above demo, and hover on "c", you can see that it's overlapped with "d".

### Current Behavior

Sectors may overlap when setting `minAngle`.

### Expected Behavior

Sector angles should be adjusted when some sectors are smaller than `minAngle`. The currect implementation only set angle to be `minAngle` when it's smaller but not adjust other sectors' angle. But since `minAngle`'s document is missing, probably no one is using this option unless have read the source code.

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.