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

When there is only one discrete point, it shows up on the bottom of the y-axis or near the top, but not midway #35

Open
OAGr opened this issue Apr 20, 2020 · 4 comments

Comments

@OAGr
Copy link
Contributor

OAGr commented Apr 20, 2020

image

Ideally the bottom would be for 0, so any value over zero would show up above the zero point, and this would vary depending on the other settings.

@OAGr
Copy link
Contributor Author

OAGr commented Apr 20, 2020

For instance, here, maybe it would show 12% up, instead of on the bottom.
image

@OAGr
Copy link
Contributor Author

OAGr commented Apr 20, 2020

I think the same issue is also relevant here, where the values should probably be quite close together.

image

@skosch
Copy link
Collaborator

skosch commented Jun 10, 2020

Simply setting yMin = 0 (instead of yMin = d3.min(this.attrs.data.discrete.ys);) in distPlotD3.js:430 seems to solve this problem for me. Is there more to the issue?

@OAGr
Copy link
Contributor Author

OAGr commented Jun 11, 2020

It's possible that's all there is to it, that would be great.

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