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

Set slider range to min-max of data #14

Closed
FLomb opened this issue Mar 10, 2022 · 1 comment
Closed

Set slider range to min-max of data #14

FLomb opened this issue Mar 10, 2022 · 1 comment
Labels

Comments

@FLomb
Copy link
Collaborator

FLomb commented Mar 10, 2022

Currently, all slides range from 0 to 1. However, some of those have a much narrower 'actual' range. For instance, Gini is something like 0.7-1 only.

Would it make more sense to set the sliders' range to the min-max range of data? This should be done, however, in a way that is consistent with the scatter plot, which instead shows (correctly) all ranges from 0 to 1. One option would be to keep all slides with a 0-1 range while simultaneously 'stopping' the slider at the edges of the min-max data range.

@sjpfenninger
Copy link
Member

Done in 722ba09 by setting the starting values of the sliders to the min-max in the data. Ideally, as Francesco suggests there would be a "stopper" at the edge of the min-max range but I don't see an easy way to do that with what Dash provides while still keeping the relative width of the slider correct - maybe something to revisit in the far future...

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

No branches or pull requests

2 participants