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

Text overflow in bar chart #17

Open
allanaaa opened this issue Dec 21, 2023 · 4 comments
Open

Text overflow in bar chart #17

allanaaa opened this issue Dec 21, 2023 · 4 comments

Comments

@allanaaa
Copy link
Contributor

With dimensions (e.g. 700x700) required in the settings, there should be no overflow from that - everything should be contained within. I'm getting text labels overflowing to the left of those dimensions instead of wrapping. In Thanks Roy and in Default:

Screenshot 2023-12-21 at 11 57 41 Screenshot 2023-12-21 at 12 03 59 Screenshot 2023-12-21 at 12 01 45
@jimsafley
Copy link
Contributor

The diagram is separate from the flow of the surrounding markup, so wrapping here is not possible. Docs should mention this and recommend that margins should be adjusted to accommodate long labels. Also, I believe labels have a title attribute that shows the entire label during hover.

@allanaaa
Copy link
Contributor Author

There has got to be a way to do this out of the box.

Also, the interface should describe what the margins do in this case (i.e. contain the text labels, sit within the total dimensions, and reduce the size of the graphic when making space for the text). This is not a standard use of the CSS concept of "margin" so people should rightly be confused.

@jimsafley
Copy link
Contributor

It's the standard use of the diagram concept of "margin," but I see your point. And perhaps there's a way to wrap, but I'm not going to address it any time soon.

@allanaaa
Copy link
Contributor Author

Similarly, the pie chart labels are being generated (I assume) somewhere in the middle of each slice, so they overlap frequently. Any chance of being sure they don't all display in the same coordinates?

Screenshot 2024-01-30 at 17 52 18

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

2 participants