echarts: containLabel not working as expected

Version

5.1.2

Reproduction link

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.

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 11
  • Comments: 20 (1 by maintainers)

Most upvoted comments

+1 this is a big problem for me