Skip to content

[Bug] Grid.containLabel is set to true, but axisLabel is still truncated #16875

@wenhai974

Description

@wenhai974

Version

5.3.1

Link to Minimal Reproduction

https://codepen.io/littleKoi/pen/xxpJJLy

Steps to Reproduce

I've set Grid.containLabel to true, but the axisLabel is still out of the container, causing it to be truncated.

Current Behavior

This is an EX: ex

Expected Behavior

If grid.containLabel is true, all lables should be included in the container during echarts init or resizes.

Perhaps the spacing algorithm for axisLabel should be optimized for the length of the lable at the end

Environment

- OS:macOS Monterey
- Browser:Chrome 96.0.4664.55
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishstaleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions