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

x.axis cuts off if window width size is small and category text exceeds chart height #2341

Closed
jcsmorais opened this issue Apr 7, 2018 · 2 comments

Comments

@jcsmorais
Copy link
Contributor

jcsmorais commented Apr 7, 2018

chart-with-big-window
chart-with-small-window

  • Summary:

As you can see in my example screenshots if you have a long category its text ends up being cut off depending on screen width. If I understood the documentation correctly one could set the x.axis.height according the the longest category text in the chart, but my problem is a little different since these categories are generated dynamically, so I have less control over the length they have other than they're between 1-255 chars.

That said, I'm wondering if there's any other option that would:

  1. increase the chart height dynamically depending on the longest category text
  2. ellipsify the text according to the max height of the chart element
  3. do something else that would make the chart look less broken? :)

While searching for similar issues I found this one that might be related to what I'm asking here as well.

@jcsmorais jcsmorais changed the title x.axis cuts off if window width size is small and category label exceeds chart height x.axis cuts off if window width size is small and category text exceeds chart height Apr 7, 2018
@jcsmorais
Copy link
Contributor Author

@masayuki0812 any idea on this one please?

@jcsmorais
Copy link
Contributor Author

For future reference this has been addressed by #2364 and is now available on version 0.6.1

/cc @kt3k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant