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

Bar label out of chart bounds #127

Open
oldru27 opened this issue Oct 2, 2024 · 3 comments · May be fixed by #128 or #130
Open

Bar label out of chart bounds #127

oldru27 opened this issue Oct 2, 2024 · 3 comments · May be fixed by #128 or #130

Comments

@oldru27
Copy link

oldru27 commented Oct 2, 2024

Problem

When a bar is exceding the visible time period of the gantt, its width is going out of the gantt.
As the bar is exceding the visible gantt area, its label, which is centered compared to the bar width, is not visible.

Exemple : A bar is covering the period 01/01 to 15/01 and the gantt is displaying only 01/01 to 07/01 (one week).

Screenshot of the problem
gantt

Expected

The label must be centered as compared to the visible part of the bar, not its entire width.
Or the width of the bar must be adapted to fit only the visible area of the gantt.

Question

Is there any native way to make the label visible in that case ? Or could a enhancement be considered ?

@oldru27 oldru27 linked a pull request Oct 22, 2024 that will close this issue
@albadedan albadedan linked a pull request Dec 11, 2024 that will close this issue
@Charlokkk
Copy link

Same problem, hope this problem can be solved soon

@oldru27
Copy link
Author

oldru27 commented Dec 13, 2024

@Charlokkk it is solved in my previous commit/PR. Waiting for approval.

@albadedan
Copy link

Me too. The only reason I merged @oldru27's PR into mine was because I wanted to be able to use their fix immediately as I am using my PR internally already. Hopefully approval will come soon.

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