apache / apache/echarts

[Bug] grid.top has no effect on sunburst chart

Open
#19,288 4 comments 0 reactions 0 assignees View on GitHub
en new-feature topic: sunburst
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.3

### Link to Minimal Reproduction

https://codesandbox.io/s/cranky-leakey-5p3h5y?file=/src/index.js

### Steps to Reproduce

1. Define a sunburst chart
2. Define a a title with text and subtext in the options object
3. Set grid.top to any value

### Current Behavior

The `grid.top` setting has no effect, which leads to an overlap of the title and the chart. In contrast to sunburst this works for bar and line charts and also sankey has an approach (a `top` property right in the `series` objects) to define a wider gap to the top.

### Expected Behavior

When setting `grid.top` this should lead to a broader gap between the chart and the top of the container.

### Environment

```markdown
- OS: 14 Sonoma
- Browser: Safari / Firefox / Chrome
- Framework: ReactJS, echarts-for-react, echarts
```

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