apache / apache/echarts

Legends at the bottom of graphs

Open
#14,724 20 comments 5 reactions 0 assignees View on GitHub
discussion-required en enhancement
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
5.0.2

### Reproduction link
[https://github.com/robertjorg/legend-overlap](https://github.com/robertjorg/legend-overlap)

### Steps to reproduce
I tried recreating with 5.2 but eCharts was giving me errors when trying to run. I was able to recreate the issue on the examples and have attached a github project displaying the issue.

Create a chart with a large legend section.

### What is expected?
The legend should move to the bottom of the graph and expand how much space is at the bottom of the graph.

### What is actually happening?
The legend will overlap with the actual graph when multiple lines in the legend are present. You are able to fix this by expanding the bottom size of the grid.

---
We have a need to have dynamic legends. It would be nice if the legend would attach the top of the legend to the bottom of the graph and expand the bottom of the grid accordingly.

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.