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

Overlapping labels if x-axis is narrow #179

Open
DK-Unit4 opened this issue Sep 2, 2021 · 2 comments
Open

Overlapping labels if x-axis is narrow #179

DK-Unit4 opened this issue Sep 2, 2021 · 2 comments
Labels

Comments

@DK-Unit4
Copy link

DK-Unit4 commented Sep 2, 2021

Actual behaviour:
Labels are overlapped when space is narrow (actual problem the tspan box of category labels is larger than category item area - otherwise I would truncate it myself with css)
image

image

Expected behaviour:
tspan width is same large as the category area

Example:
https://jsfiddle.net/Kumlander/y1vLojwx/2/

@KacperMadej
Copy link
Collaborator

Hi @DK-Unit4

Thank you for reporting the problem.
Looks like a duplicate of #111

@DK-Unit4
Copy link
Author

DK-Unit4 commented Sep 3, 2021

Comment: I have removed the optional request to make it clearer.

For me it doesn't look to be quite the same - the problem here that label is located in the tspan that is wider that the category group area. If it would be as wide as it should then we would not have the problem or would be available to solve by workarounds. Unfortunately we (outside) cannot control the tspan size when we define thatx-axis labels should be 100% wide y the following setting:
groupedOptions: [ { style: { width: '100%' }, }, ] }

PS: it works ok if a chart is much wider, but when it become smaller the tspan starts to be wider than the category area

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

No branches or pull requests

2 participants