apache / apache/echarts

containLabel not working as expected

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

Description

### Version
5.1.2

### Reproduction link
[https://codepen.io/ataft/pen/eYWqzqx](https://codepen.io/ataft/pen/eYWqzqx)

### Steps to reproduce
https://codepen.io/ataft/pen/eYWqzqx
https://codepen.io/ataft/pen/dyWxpyG

### What is expected?
When `containLabel = true` and grid `left, right, top, bottom` are all set to 0, I expect the axis labels to show completely without getting cut off.

### What is actually happening?
As the CodePen's show, labels are being cut off, especially in the top-left and bottom-right "ends" of the axes.

---
`containLabel `is a very important feature if it can work correctly. Manually setting grid left, right, top, bottom is tedious/impossible, and leads to a lot of unnecessary whitespace.

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.