Skip to content

Provide an option to show all labels on axis without overlap #455

@wylieconlon

Description

@wylieconlon

The boolean behavior of showOverlappingLabels is too restrictive for some use cases, especially categorical scales like we get with keyword fields. In these cases, users should be able to see every label on the X axis without overlap. Neither of these options works for me:

Screenshot 2019-11-20 16 01 27

Screenshot 2019-11-20 16 04 20

Setting a -45º angle on the labels helps prevent obvious overlap but is not as visually appealing:

Screenshot 2019-11-20 16 05 50

I don't have a solution to this problem, but I have observed several options that would be worth considering:

  • Wrap the labels Axes labels should wrap their text #313
  • Calculate label positioning the same way pie charts do @monfera
  • Create multiple rows/columns and draw labels that are not all directly next to each other
  • Automatically tilt labels in some cases

Kibana Cross Issues
Not aware of one

Checklist

  • this request is checked against already exist requests
  • [ ] every related Kibana issue is listed under Kibana Cross Issues list
  • [ ] kibana cross issue tag is associated to the issue if any kibana cross issue is present

Metadata

Metadata

Assignees

No one assigned

    Labels

    :axisAxis related issueenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions