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

Charts only show 1 y-axis tick when data is less than ~0.1 #387

Closed
irislieuw opened this Issue Apr 24, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@irislieuw
Copy link

irislieuw commented Apr 24, 2018

Description

Only 1 y-axis tick shows up when data is less than 0.1. I'd expect at least one more in the y axis, only 0 shows up currently.

image

Steps to check or reproduce

Example here - it is reproducible in bar, line, spline, area, etc charts

https://jsfiddle.net/irislieuw/tsbzju5k/

Am I doing something wrong? I can force a certain number of y ticks to show up by using axis.y.tick.count, but having billboard automatically show them is much nicer and more flexible since my dataset changes often.

Thanks

@netil netil added the question label Apr 25, 2018

@netil

This comment has been minimized.

Copy link
Member

netil commented Apr 25, 2018

Hi @irislieuw for reporting. It seems a bug.
I'll try to fix on next release.

@netil netil added bug and removed question labels Apr 25, 2018

@netil netil added this to the 1.5.0 milestone Apr 25, 2018

@netil netil self-assigned this Apr 25, 2018

netil added a commit to netil/billboard.js that referenced this issue May 14, 2018

fix(axis): Correct ticks less than ~0.1 to be shown
Update the condition to treat ~0.1 values.

Ref naver#387

@netil netil closed this in 8d14bcb May 14, 2018

@netil

This comment has been minimized.

Copy link
Member

netil commented May 14, 2018

If you need use before the release, checkout the nightly build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.