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

Duplicate Y-Axis labels through rounding #993

Open
lab-w opened this issue Apr 21, 2020 · 1 comment
Open

Duplicate Y-Axis labels through rounding #993

lab-w opened this issue Apr 21, 2020 · 1 comment

Comments

@lab-w
Copy link

lab-w commented Apr 21, 2020

Using dygraphs to plot data with more digits after decimal than the "digitsAfterDecimal" option (default: 2) leads sometimes to duplicate labels on the Y-axis.

In this jsfiddle example I see two labels named "0.05" and two labels named "0.06". A much more appreciated version would be to leave out rounded labels when the same value is already shown on the axis.

https://jsfiddle.net/ujsxnc7r/

I'm using dygraphs 2.1.0.

@mirabilos
Copy link
Collaborator

Ouch. Agreed, but tricky.

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

No branches or pull requests

2 participants