apache / apache/echarts

[Question]图例可能会有多行时,如何避免图形与图例重叠?

Open
#16,912 14 comments 1 reaction 0 assignees View on GitHub
enhancement pending topic: legend waiting-for: community
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.3.0

### Link to Minimal Reproduction

_No response_

### Steps to Reproduce

![image](https://user-images.githubusercontent.com/24405108/163972365-5b7b2623-8553-48ec-8cc4-7901a2e6d6d1.png)

### Current Behavior

因为需求关系,这块不能使用scroll类型图例,并且由于图例数量不确定,没法给图形设置一个合适的top值,导致图例与图形可能重叠

### Expected Behavior

能不能实现图例把图形挤下去的效果?或者能不能获取到图例的高度,这样我就可以给图形设置一个合适的top值。

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