Skip to content

Is there a way to prevent the axis name from automatically overlapping with its labels? #17902

@pasqualtroncone

Description

@pasqualtroncone

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. Go to Heatmap on Cartesian chart example from project web page.
  2. Add the following attributes to yAxis option: name: 'Axis name' and nameLocation: 'center':
    yAxis attributes
  3. Press Run button at top and check how Axis name overlaps few labels:
    overlapped value

Current Behavior

Axis name overlaps its labels
overlapped value

Expected Behavior

Axis name should appear right next to values
no overlapped

Environment

- OS: Any
- Browser: Chrome or Firefox. Latest versions

Any additional comments?

I know we can use nameGap attribute, but in some cases there is no way to know how long the label will be.
Is there a way to get the "size" of the label space/boundaries?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions