Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Feature Request scale for steps in slider, range slider #578

Open
SumNeuron opened this issue Jul 9, 2019 · 2 comments
Open

Feature Request scale for steps in slider, range slider #578

SumNeuron opened this issue Jul 9, 2019 · 2 comments

Comments

@SumNeuron
Copy link

It would be nice if the steps in range slide could be scaled (e.g. log)

@alexcjohnson alexcjohnson changed the title Feature Request scale for steps in range slider Feature Request scale for steps in slider, range slider May 15, 2020
@alexcjohnson
Copy link
Collaborator

From @MM-Lehmann in plotly/dash#1250:

It would be nice to have the dcc.Slider (and similar controls?) accept a log=int() attribute which would then convert all numbers/marks/tooltips of the control by calculating x**log. Of course, the default value would be log=1

x**log would be power scaling, not logarithmic - anyway there are various scaling functions which may be valuable.

@MM-Lehmann
Copy link

MM-Lehmann commented May 15, 2020

x**log would be power scaling, not logarithmic - anyway there are various scaling functions which may be valuable.

Yeah, I've been a bit confusing in my wording. That's what i meant, anyway.
In my mind, it would be easy to just attach a scaler function, similar to a serialiser/deserialiser which converts set values in both directions. This way, you wouldn't have to change much in the backend. That said, the js slider supports a logarithmic scaling option, maybe that can be leveraged?

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

No branches or pull requests

3 participants