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

Last tick label/width different from the rest #2249

Closed
joebirkin opened this issue Apr 12, 2016 · 7 comments · Fixed by #4556
Closed

Last tick label/width different from the rest #2249

joebirkin opened this issue Apr 12, 2016 · 7 comments · Fixed by #4556

Comments

@joebirkin
Copy link

Got an odd issue - for some reason the last tick and label on the X axis is compressed (only on line charts). Am I going wrong somewhere?

image

image

@joebirkin
Copy link
Author

Just noticed it's sometimes doing the exact opposite, if that helps!

image

@etimberg
Copy link
Member

This is probably related to the code that ensures the last label is always visible. In the first case I think it thinks that the second last and last labels will not overlap. In the second case it thinks they will and removes the 2nd last label

@freewil
Copy link

freewil commented Jul 19, 2016

@hodephinitely are you using the time scale for your x-axis? If so, I believe this is the same issue as described in #2774

@joebirkin
Copy link
Author

@freewil No, I don't think so! Just text (but MM/YY).

@etimberg
Copy link
Member

I feel like this is related to #2560 and #2964 for which I have a PR in #3064

@daiscog
Copy link

daiscog commented Aug 19, 2016

This has also been reported in #3069 and #2774
FWIW, here's another jsbin showing the issue: http://jsbin.com/yicazawaba/edit?html,output and a screenshot thereof.
image
IMO, that final tick should just not be shown if the interval between it and the penultimate tick does not match the interval between the rest of the ticks.

@paulrajib
Copy link

Is there any way to remove space between ticks when there is no data(or data value is zero/NULL) for a long time?

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

Successfully merging a pull request may close this issue.

6 participants