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

Zero of y-axis in the wrong position #473

Closed
bindai opened this issue Jul 3, 2019 · 1 comment
Closed

Zero of y-axis in the wrong position #473

bindai opened this issue Jul 3, 2019 · 1 comment

Comments

@bindai
Copy link

bindai commented Jul 3, 2019

The zero of y-axis is in the wrong position when there is only one piece of data like this [{k: 1553356800000, v: 0}].

You can see demos from the screenshots below.

image

image

@hshoff
Copy link
Member

hshoff commented Jul 3, 2019

This has to do with a change d3-scale made in 2.2.2: d3/d3-scale#117

This means in the situation where all values are 0 you’ll want to update the scale domain to [0,1].

Hope this helps!

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