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

v2.0 max ticks labeling issue #1968

Closed
va-h opened this issue Feb 2, 2016 · 5 comments · Fixed by #5938
Closed

v2.0 max ticks labeling issue #1968

va-h opened this issue Feb 2, 2016 · 5 comments · Fixed by #5938

Comments

@va-h
Copy link

va-h commented Feb 2, 2016

Hi,

when max ticks is generated dynamically and very near the next thousand the labels are overlapping.

For example
max ticks is set to 2001:

max

Also when the width is between 460 and 666 the Y Axis labels for small result sets are looking like this:
dect

@etimberg etimberg added this to the Version 2.0.1 milestone Feb 27, 2016
@etimberg etimberg removed this from the Version 2.0.x milestone Oct 23, 2016
@jssullivan
Copy link

A work around to this bug is to use maxTicksLimit and stepSize. I created a code-pen showing this particular bug and this workaround. You could additionally set stepSize to maxTicksLimit/stepSize to create an arbitrary amount of steps.

I would try and help address this issue, but in its current form it seems to address two different problems; rounding of the axis labels showing too many decimals, and the bug shown in the codepen where max values are improperly handled. I can come back in a week or so to help with this Issue, but for my first contribution to this project I am probably going to split this into two separate tasks.

@adeel3612
Copy link

@etimberg Any update on this ? i am having same issue .

@crabmusket
Copy link

We're running into issues with this as well. Here's a demonstration of the options we've tried (no example code, sorry. Image version in case my hosting changes). We've eventually decided to go with the top option, which sometimes leaves more whitespace on the top than we'd like, but seems by far the least undesirable.

My personal ideal would have been to go with the middle row, if we could chop off the top-most ticks and their lines. I don't mind leaving the chart data hanging over the top tick a little, though I've been advised it's not good chart UX.

@kurkle
Copy link
Member

kurkle commented Jan 17, 2019

This was fixed in #5938
Pen using master

@kurkle kurkle closed this as completed Jan 17, 2019
@etimberg
Copy link
Member

Thanks for following up on this @kurkle 😄

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

Successfully merging a pull request may close this issue.

8 participants