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

Make it possible to change the position of the slider from within altair/vega-lite #9442

Open
hadjipantelis opened this issue Oct 1, 2024 · 3 comments

Comments

@hadjipantelis
Copy link

What is your suggestion?

Make it possible to change the position of the slider programmatically from within altair (e.g. "top", "bottom", "left", "right"). Currently, it is always at the bottom of the page as here: https://altair-viz.github.io/gallery/us_population_over_time.html with no way of moving it aside editting the CSS directly.

Have you considered any alternative solutions?

I have seen vega/altair#1575, but that doesn't work if one wants to integrate this in Streamlit or Gradio.

@joelostblom joelostblom transferred this issue from vega/altair Oct 1, 2024
@joelostblom joelostblom changed the title Make it possible to change the position of the slider from within altair. Make it possible to change the position of the slider from within altair/vega-lite Oct 1, 2024
@joelostblom
Copy link
Contributor

joelostblom commented Oct 1, 2024

Thanks for the suggestion, I think this would be useful as well. However, I believe it can't be implemented easily directly in altair in a robust manner, so I have transferred this issue to the Vega-Lite repo instead. Once it is implemented in Vega-Lite, it would be possible to use it from Altair as well.

@hadjipantelis
Copy link
Author

Makes sense, thank you.

@ogencoglu
Copy link

+1 for this

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

No branches or pull requests

3 participants