Hej
I would like to build something like evidence.dev’s Dimension Grid in Streamlit:
Has somebody done something similar in Streamlit yet and can share the approach?
Many thanks
Hej
I would like to build something like evidence.dev’s Dimension Grid in Streamlit:
Has somebody done something similar in Streamlit yet and can share the approach?
Many thanks
This is a rough example suing radio buttons and JSON files. I’m sure there is a better approach, but I think its possible to achieve similar functionality.
Thank you!
Yes I was thinking about an implementation with existing components, but I wanted sth different. Also really not a dimension explore, but a selectbox with size>1, so several options can be seen at the same time, and selection is easier (without dropdown)
So I created my first custom component
very rudimentary, v0.1 type of stuff, but it allows me to do “cascading selects” like this
Code here:
IMHO it would be best if a “size” parameter could be added to the existing st.selectbox… but I don’t know how to do that
I opened an enhancement issue for this here add "size" parameter to st.selectbox · Issue #8272 · streamlit/streamlit · GitHub
It’s snappy fast! Nice work.
Nothing wrong with rudimentary when it comes to experimentation. I use the drill-through functionality in Power BI when multiple filters are displayed within a report and its not always obvious that user selections applied to one slicer filter others throughout the page. Having the ability to visualize the interaction between the two elements is a good approach! Again, nice job!
Universally, either a sizing or positioning feature for built-in elements would be awesome! Each release has included new elements & styling features since I’ve joined the community that have been extremely useful and I recall seeing custom styling/theming options as a bullet point on Streamlit’s future roadmap, so it maybe coming in the future.
I’ll give the new GitHub enhancement a thumbs up right away! Thank you for submitting that request!
Cheers!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.