Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axes labels should wrap their text #313

Open
Tracked by #2320
cchaos opened this issue Aug 14, 2019 · 1 comment
Open
Tracked by #2320

Axes labels should wrap their text #313

cchaos opened this issue Aug 14, 2019 · 1 comment
Assignees
Labels
:axis Axis related issue bug Something isn't working Impact:High kibana cross issue Has a Kibana issue counterpart

Comments

@cchaos
Copy link
Contributor

cchaos commented Aug 14, 2019

Describe the bug
If there isn't enough available space, axes labels will get cut off.

To Reproduce
Steps to reproduce the behavior:

  1. Create a chart with a long axes label
  2. See error

Expected behavior
Usually I'm a fan of just truncating with an ellipsis and then use title attribute to display the full label. The problem with this is that the chart label is too integral to the understanding of the chart to be hiding pieces of information, also I don't think you can add a title attribute to parts of a Canvas or even SVG element.

Therefore, I think the solution is just to allow the text to wrap lines.

Screenshots
Screen Shot 2019-08-14 at 15 25 26 PM
The label should say 6:00 - 6:14

Version (please complete the following information):

  • Elastic Charts: 9.0.4

Kibana Cross Issues
elastic/kibana#20472

@cchaos cchaos added bug Something isn't working :axis Axis related issue labels Aug 14, 2019
@markov00 markov00 added the kibana cross issue Has a Kibana issue counterpart label Oct 9, 2019
@nickofthyme
Copy link
Collaborator

This should also include the ability to truncate the label to a given length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue bug Something isn't working Impact:High kibana cross issue Has a Kibana issue counterpart
Projects
None yet
Development

No branches or pull requests

3 participants