apache / apache/echarts

[Bug] Pie chart with borderWidth put center off

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

Description

### Version

5.2.2

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/referer-of-a-website-tvthft

### Steps to Reproduce

1. create pie chart
2. add series with specific colors
3. set bordercolor to the same color
4. set borderWidth

### Current Behavior

Each border draws into the area of the neighbor - only the last stops exactly at the full circle. this make the center look like its off by the border width

![Image](https://github.com/user-attachments/assets/bb89023f-7661-4bb4-8c47-785144f59ed5)

### Expected Behavior

The center should not be off.

when the series colors are removed, it behaves the same but the center still seems to be at the center:

![Image](https://github.com/user-attachments/assets/94707d7f-1198-423d-a30f-1211872a30ff)

### Environment

```markdown
- OS: Windows 10
- Browser: Chrome
- Framework: webcomponents
```

### 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.