I am working on a dashboard development project over streamlit, i was trying to use Dash (Pydash) but it seemed difficult as i have not understanding of CSS/HTML stuff and then thank god i met STREMLIT, seems quite user friendly and happy to explore it. What I need help is how to create section in the page e.g I need to create 2 charts side by side (horizontally).
Any help is highly appreciated !
Streamlit doesn’t currently support horizontal layouts like you’re looking for – but this is a highly-requested feature (including by us, internally), and it’s on our roadmap!
You can watch this Github issue to get notifications about progress on the feature.
Thanks a lot for the response Tim, also i had a look over the GitHub link you have shared and found that its quite a frequent demand. I really hope to see this feature soon in Streamlit to make it holistic modelling/visualization platform. Reiterating my requirements:
ways to display widgets (charts, selectors…) horizontally maybe a grid can help
ways to create multiple pages to make a complete dashboard
Thanks for the support and highly optimistic towards this development in future
Hii @Ashish_Pandey,
Actually I am still looking for a way to visualize two charts side by side in streamlit; however, in order to display two charts side by side you can easily use ordinary subplots there.
As example:
fig = plt.figure(figsize=(10, 4))
fig, axs = plt.subplots(nrows=1, ncols=2)
st.pyplot(fig)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
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.
Performance cookies
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.
Functional cookies
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.
Targeting cookies
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.