Black Lives Matter. Please consider donating to Black Girls Code today.

Hide plot but show range slider?

Hi, I like this example code:


but I’m wondering if there’s a way to only show the range slider (and hide all the other graphical elements)?

My reason is that I’m looking for a “data driven slider” which I can provide to users to filter their data. Right now, I’m using this:
https://jqueryui.com/slider/#range
which works just fine. However, something with a histogram-like “sparkline” would be nice.

Alternatively, I thought about using the main chart as the “filter” widget since the zoom feature is close to what I’m looking for, but I don’t actually want to zoom my plot. I want the axis to stay fixed but still have pull-handles I can slide back and forth. You must have some way to keep the zoom handles on the plot since that’s what happens in the range slider, but I can’t figure out how that’s implemented from your Full Reference.

Thanks for any advice!

1 Like

Not at the moment, range slider are essentially axis features, so they can’t live w/o axes.

1 Like