streamlit icon indicating copy to clipboard operation
streamlit copied to clipboard

Histogram slider

Open e-tornike opened this issue 1 year ago • 8 comments

Problem

A user interacting with a slider might be interested in the distribution of the values in order to more appropriately filter relevant data. As far as I am aware, this is not yet possible.

Solution

MVP: Use a histogram to show the distribution of each step/bin.

Possible additions: Move the range bar sideways, coloring steps/bins inside of the range.

Additional context

For inspiration, it could look something like the vue-histogram-slider:


Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

e-tornike avatar Feb 15 '23 13:02 e-tornike

Thanks for sharing this suggestion, @e-tornike!

carolinedfrasca avatar Feb 15 '23 17:02 carolinedfrasca

This looks super cool! I think it's unlikely we'll build that in the near future but it would make for a great custom component. There is a template from @andfanilo on making custom components with Vue, see here, so maybe you could literally just wrap the slider you linked in that?

jrieke avatar Feb 15 '23 18:02 jrieke

+1 Would be very useful!

masonearles avatar Mar 09 '23 23:03 masonearles

+1 would be very useful

NanisTe avatar Apr 17 '23 09:04 NanisTe

+1 bump, this would be very useful. Additionally. I guess return information about what percentage of the counts are in filter vs out filter

isConic avatar May 23 '23 19:05 isConic

+1 This would be awesome.

BenGravell avatar Jul 18 '23 02:07 BenGravell

+1 Would love it

mkleinbort-ic avatar Feb 13 '24 16:02 mkleinbort-ic

  • 1

vktrbr avatar May 10 '24 20:05 vktrbr