Skip to content

axis name and label overlaps when the nameLocation is 'center' or 'middle' #12415

Open
@ihakh

Description

Version

4.7.0

Steps to reproduce

in this example https://echarts.apache.org/examples/en/editor.html?c=watermark
add these lines to yAxis:

        name:'some longe name',
        nameLocation:'center',

image

What is expected?

the name comes after the longest label name automatically

What is actually happening?

the name and label overlaps


we can fix it by nameGap for a certain resolution
but it is not dynamic and on different resolution the it may be wrong
besides when using a dynamic charts when the label length is unknown we can not be sure how much nameGap we must consider

Metadata

Assignees

No one assigned

    Labels

    discussion-requiredFurther discussion is required before we decide if this issue should be fixed.enThis issue is in Englishenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions