foretold-app / widedomain

An experiment to create mathematical models with clean interfaces
MIT License
8 stars 2 forks source link

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 4 years ago

OAGr commented 4 years ago

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 commented 4 years ago

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

OAGr commented 4 years ago

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

image

skosch commented 4 years ago

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 commented 4 years ago

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