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

Total value labels on horizontal bar chart get truncated on the far right #25131

Open
Vicinius opened this issue Aug 30, 2023 · 6 comments
Open
Labels
validation:validated A committer has validated / submitted the issue or it was reported by multiple users

Comments

@Vicinius
Copy link

Vicinius commented Aug 30, 2023

Screenshot

image
image
image

Description

X axis on bar chart doesn't show up properly on a lot of situations. When you use the horizontal bar chart and you set the X axis format to %, on smaller screens they just can't be read, because they overlap. Also, with percentages like 99%ish (when you select SHOW VALUES) you get the numbers and %'s cut in half. Also on edit chart screen you get the same behaviour. I'm really interested in solving this but have literally no idea if the issue is on apache echarts or where else

PS: If this should be on "Bug report" please tell me so I can change

Design input

none

@Vicinius
Copy link
Author

It happens both on 2.1.1 and on 3.0.0. The issue here is with horizontal bar chart and horizontal bar chart only. Even on bigger screens and fullscreen, the chart will cut the numbers because It probably does not work well with the (x axis on 2 decimal points, 0.00%)

@rusackas
Copy link
Member

This thread is at risk of being closed as stale since it's been nearly six months since the last comment. I assume some facets of this problem are still present in 3.1 or newer, but this might need an update of context. Further investigation and PRs to automatically strip ticks are welcome. The issue with the labels on the right being cut off MIGHT be fixed by now. I'd suggest we keep each Github Issue to a single problem, rather than conflating them :D

@sfirke
Copy link
Member

sfirke commented May 1, 2024

This persists in 4.0.0:
image

@sfirke
Copy link
Member

sfirke commented May 1, 2024

And agreed, this should be two issues -- the overlap vs. the truncation on the right. I am going to take the liberty of making this issue about the truncation on the right since that's what I can corroborate. @Vicinius, if you can check that the overlap problem persists in 4.0.0, can you please open a new issue for that and link back to this one?

@sfirke sfirke changed the title X axis format on horizontal bar chart is broken, numbers overlap and are cut in half Total value labels on horizontal bar chart get truncated on the far right May 1, 2024
@sfirke
Copy link
Member

sfirke commented Dec 23, 2024

This persists in 4.0.2 - here the "M" is getting cut off:
image

@sfirke sfirke added the validation:validated A committer has validated / submitted the issue or it was reported by multiple users label Dec 23, 2024
@fardin-developer
Copy link
Contributor

I would like to work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation:validated A committer has validated / submitted the issue or it was reported by multiple users
Projects
None yet
Development

No branches or pull requests

4 participants